[thelist] ASP Array Question
Josh Feingold
joshfeingold at hotmail.com
Fri Nov 30 13:58:41 CST 2001
I am working with arrays in ASP and want to make the index of the array a
variable.
e.g.
dim first_array(10)
for x = 1 to 10
first_array(x) = "This stuff"
next
That does not work, nor does a two-diminsional array such as:
dim second_array(2,3)
for x = 1 to 10
second_array(x,3) = "This stuff"
next
However this seems to work:
dim third_array(2,3)
for x = 1 to 10
third_array(3,x) = "This stuff"
next
Based on all of this it seems that the index must be a number and can't be
inserted via a variable even if the variable is a number.
Is there any way around this?
Thanks,
Josh
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
More information about the thelist
mailing list