[thelist] ASP: checking for empty array

Marc Seyon seyon at carib-link.net
Thu Apr 12 19:15:40 CDT 2001

hope someone can help with this.

I'm creating an array using Filter like so:

arrYes = Filter(arrAlt,strQS,true)

I need a way to check whether arrYes was populated with a value or not. It 
can only ever have one item in it.
I've been trying to test the value of arrYes(0), but that only works if 
there is actually a value there. Otherwise I get this error:
Subscript out of range: '[number: 0]'


More information about the thelist mailing list