I'm attempting to create and fill in a two-dimensional array in VBScript, which resides in an ASP page. I have the following code:
Dim array(11, 6)
For record = 0 To 6
array(6, record) = 8
array(7, record) = "test"
Next
array(6, 3) = 8
array(7, 3) = "test"
The for loop doesn't work, though. Nothing gets filled in. If I do it explicitly, like the code after the loop, that works just fine.
I've hardly ever used VBScript before but this seems like it should work. Why is my loop not doing anything?
forloop; shouldn't that happen automatically? Even if not, the 0th element doesn't get filled in (and it doesn't loop forever).