[thelist] [ASP] Empty arrays in different versions

Joshua Olson joshua at waetech.com
Tue Oct 14 16:03:17 CDT 2003


Hi Gang,

I tried to move some code from one machine to another and the code broke.  I
tracked it down to what I think is a variance in ASP's implementation.  In
some versions of ASP, it seems that the empty array returns False for
IsEmpty even when it's truly empty.

Example:

Dim myarray()

If IsEmpty(myarray) Then
  Response.Write "It's Empty"
End If

I've found that on some machines the IsEmpty evaluates true, and others it
evaluates false.

Thoughts?

<><><><><><><><><><>
Joshua Olson
Web Application Engineer
WAE Tech Inc.
http://www.waetech.com
706.210.0168



More information about the thelist mailing list