|
yogaboy -> RE: array in a loop (4/2/2005 8:15:19)
|
Hi Wiz, Arrays are numbered from 0, so ArrSend(2) has 3 spaces - 0, 1, 2. I don't understand why you start your FOR loops at 1, they should probably start at 0. Also, you could bypass all this by using a SPLIT function. If you have 5 checkboxes with the same name... myArrSend = Request.QueryString("arrSend") myArray = SPLIT(myArrSend) For i = 0 to Ubound(myArray) Response.write myArray(i) Next Ubound is the upper bound or "top" of the array, which in this example will equal 4 because there are 5 items (0, 1, 2, 3, 4). SPLIT creates a zero-dimension array and puts the bit in the brackets into it, usually by delimiting by commas or spaces. Hope that helps Iain
|
|
|
|