I have an array that I create in my declarations. Some of my code uses this array when it's not dimensioned. E.G:
VB Code:
Dim array1() as string Private Sub Form_Load() Msgbox Ubound(array1) End Sub
That would give you a "Subscript out of range" because it's not dimensioned yet. Well that's my problem, I need to tell my program to not use my array if it's not dimensioned yet. How would I go about doing this? Thanks.





Reply With Quote