joined:Nov 8, 2004
I'm currently working with an Classic ASP page (VB Script) that utilizes the same array at several points during the page. After each use, I erase the array. The problem is, what is the best way to detect if the array is empty through an if/then statement?
Here's how I've been erasing the arrays:
If IsArray(a) Then
In the outer If/Then statement, I test for
The array that had been erased still exists.
On the inner If/Then statment, I'd been using
as well as
although I would get an error message when using the latter (out of range), while in the former, an erased array would show as "true" (not empty). In the meantime, I've created flags as a workaround, but it's not the ideal situation. Any help or resources would be greatly appreciated.