spinjector
Programmer
How do I detect if a dynamic array has been dimentioned without using somthing like an 'On Error' trap?
For instance:
Code:
Dim MyArray() as String
N = UBound(MyArray) 'generates "subscript out of range" error
Redim MyArray(10)
N = UBound(MyArray) 'works and displays "10"
I would like something like this:
Code:
Dim MyArray() as String
If Not IsDimentioned(MyArray)
Redim MyArray(10)
End If
Thanks.