How to find out if control array element exists
I've got a program that creates and deletes control array elements at runtime. I'm relatively new to VB, so I don't know how to check to see if an element exists. I want something along this line though
If controlArray(x) does not exist
Load controlArray(x)
else
Unload controlArray(x)
I tried isEmpty and isNull, but those seemed to return false regardless of whether the control array element was set or not
List of indexes not continuous
The Ubound technique only works where you have a control array that has no gaps in. I need to have gaps in my control array which means that certain elements do not exist. for instance, my control array has 118 textboxes but element '2' does not exist. is there any way to check if the actual element exists?
Please Help ASAP.