dynamic retreival

Results 1 to 3 of 3

Thread: dynamic retreival

  1. #1
    Join Date
    Dec 1969
    Posts
    112

    Default dynamic retreival

    hi<BR><BR>i&#039ve got code which is something like this<BR><BR>records1 = "first"<BR>records2 = "second"<BR>for i = 1 to 2<BR>Response.Write "records" & recordsi & "<BR>"<BR>next<BR><BR>i want the out put to be first in the "first" iteration of the loop and "second" in the second iteration .could someone please tell me how to do this.<BR><BR>thanx<BR>Al

  2. #2
    Eddie Campbell Guest

    Default Use an array

    Redim records(2)<BR>records(1) = "first"<BR>records(2) = "second"<BR>for i = 1 to 2<BR>Response.write "records" & records(i)<BR>next

  3. #3
    Join Date
    Dec 1969
    Posts
    112

    Default RE: Use an array

    thanx eddie it works.

Posting Permissions

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