Magic200777
New member
- Local time
- Today, 04:44
- Joined
- Jun 13, 2019
- Messages
- 2
I have a problem with a function that is suppose to return an array. I have defined array A() as Variant then populated it based on how many elements are needed. When I try to assign the first element with A(1) = "my text", I get index out of range error. I tried A(0) and get the same results. I used Option
Base 0 then Option Base 1 to no avail... What am I missing? Thanks!!!
private function Tasks(X as integer) as variant
dim A() as Variant
A(0) = "My text"
Tasks = A
end function
Base 0 then Option Base 1 to no avail... What am I missing? Thanks!!!
private function Tasks(X as integer) as variant
dim A() as Variant
A(0) = "My text"
Tasks = A
end function