test for array initialization

D

djc

how do I test to see if a dynamic array variable (of strings) has been
ReDimmed yet?

Ubound was suggessted in a previous post but that returns a 'subscript out
of range' runtime error if the dynamic array has been dimmed with a Dim
TestArray() statement but not yet ReDimmed. This is the condition I need to
test for. Do I just trap that error to know? or is there a better way?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top