test for array initialization

  • Thread starter Thread starter djc
  • Start date Start date
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
 
Back
Top