[thelist] (ASP) Array error weirdness

Tab Alleman Tab.Alleman at MetroGuide.com
Fri Aug 15 15:23:02 CDT 2003


Here's a clip of code that is giving me an error I don't expect.

Dim iNight, aNR, i, ThisPrice
i = 0
aNR = Split(NightlyRates, "+") 'in this instance, NightlyRates is an
empty string

IF isArray(aNR) THEN
	ThisPrice = aNR(i)
ELSE
	ThisPrice = aNR
END IF

The error is:

Subscript out of range: '0' 



Now for subscript 0 to be out of range, wouldn't aNR have to not be an
array?  And if it's not an array, then why isn't it getting caught by
the isArray() function?  Am I doing one of these things wrong?


More information about the thelist mailing list