VB6: How do I detect if an array is empty?
Posted on 1999-07-15
I have a type with a bunch of string arrays in it like so (shortened for viewing pleasure):
Private Type TCriteria
provider() As String
Then, various strings are passed to me and I use the Split command to parse them out and put the results into these arrays.
So, depending on the strings passed to me, I will load up anywhere from none to all of the arrays.
Is there a way to tell if one of these arrays has NOT been loaded up yet?
I've tried IsEmpty() IsNull() and they only work on Variants.
Any attempt to reference this array gives a "subscript out of range" error.