for LOOP

Results 1 to 3 of 3

Thread: for LOOP

  1. #1
    Join Date
    Dec 1969

    Default for LOOP

    HI All,<BR><BR>In for loop how to store more then 2 stringVariable. For example...<BR><BR>&#060;%<BR>&#039;sample - 1<BR> for each strVal_1 in Request.Form("x")<BR> Response.Write(strVal_1)<BR> next<BR><BR>&#039;sample -2<BR> for each strVal_2 in Request.Form("y")<BR> Response.Write(strVal_1)<BR> next<BR>%&#062;<BR><BR>In above sample 1 and 2, I want to write both variables (strVal_1 and strVal_2 or may more then..) in one for loop. Please help in these regards and will be highly appreciable.<BR><BR>Anand<BR><BR> <BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: for LOOP

    use an array<BR><BR>for x = 0 to Len(ArrayName)<BR>Response.Write(ArrayName(x))<BR> next<BR><BR>j

  3. #3
    Mike Shaffer Guest

    Default RE: for LOOP

    Except don&#039;t use len(arrayname), use ubound(arrayname)<BR><BR>;-)

Posting Permissions

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