firehorse24
Programmer
HI,
The array size confused me. I hope someone can help me. I define an array in asp:
I thought array should contain only 2 elements since the size is 2. why the array can have 3 element?
Thanks!
The array size confused me. I hope someone can help me. I define an array in asp:
Code:
dim ary1()
redim preserve ary1(2)
ary1(0) = "A"
ary1(1) = "B"
ary1(2) = "C"
response.write (ary1(0) & "<br>" & ary1(1) & "<br>" & ary1(2) & "<br>" )
response.write ubound(ary1)
I thought array should contain only 2 elements since the size is 2. why the array can have 3 element?
Thanks!