Arrays (ubound lbound stuff)

Results 1 to 3 of 3

Thread: Arrays (ubound lbound stuff)

  1. #1
    Jonathan Tooze Guest

    Default Arrays (ubound lbound stuff)

    say if i&#039;m looping through an array like so:<BR><BR>for each item in array<BR> response.write item & "<BR>"<BR>next<BR><BR>how can i get it to show the current numeric postition with in the array?<BR><BR>eg:<BR><BR>for each item in array<BR> response.write curr_bound & ") " & item & "<BR>"<BR>next<BR><BR>is it possible?<BR><BR>Thanks gurus<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Arrays (ubound lbound stuff)

    Dim I: I = 0<BR>For each item in array<BR> Response.write("Showing item #" & I & "<BR>")<BR> I = I + 1<BR>Next<BR><BR>Jason<BR>

  3. #3
    Jonathan Tooze Guest

    Default RE: Arrays (ubound lbound stuff)

    I suppose i could declare an interget as the lbound of my so<BR><BR>IntLBound = lbound(myarray)<BR><BR>for each item in myarray<BR> response.write IntLbound<BR>IntLBound = IntLBound +1<BR>next<BR><BR><BR>good thinking, but i think there might be a faster way :)<BR><BR>(it&#039;ll do for the mean time :)))<BR><BR>thanks Jason

Posting Permissions

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