Display Array

Results 1 to 2 of 2

Thread: Display Array

  1. #1
    Join Date
    Dec 1969

    Default Display Array

    I have an array that is stored in a session variable, it has two values in it, to get all the values I use:<BR><BR>For Each iItem in cartArray<BR> Response.Write iItem<BR>Next <BR><BR>This gives me the following:<BR>Booster<BR>14.95<BR><BR>Top Spot <BR>24.95<BR><BR>How would I just get the second values? i.e. the 14.95 and the 24.95<BR><BR>Thanks

  2. #2
    Join Date
    Dec 1969

    Default Don't use for each then

    For i = 0 to UBound(myArray) Step 2<BR> Response.Write myArray(i)<BR>Next

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts