This should be easy, but I cannot seem to find the answer.
I have an array which I initialize empty:
Dim MyArray() as MyUserDataType
Now in my code, I want to determine the UBOUND of MyArray. If I do something like this:
for i = 0 to ubound(Myarray) then.....
I get an error because MyArray is empty at this point. How can I test if MyArray is empty and I should not be testing for the ubound? By the way, I need to use base 0 if that makes any difference.