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