Results 1 to 4 of 4

Thread: I don't want to use Array.

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Posts
    3
    I want to create variable in asp like
    A200=x A201=y A202=z..... continue
    then if I try this
    Response.write A200
    It will show x in browser. But if I want to do this
    B=200
    and I try this
    Response.writ A&B (I mean I want the same result as Response.Write A200) it show error.

    But If I use Array by
    A(200)=x A(201)=y A(202)=z.....continue
    I can use A(B). But I don't want to do that because if I want only A200-A202 I must use 202 variable in my server mem by .
    Dim A(202)

    How I combin A&B (A200) by not use Array , Session or cookies?

  2. #2
    Addicted Member
    Join Date
    Sep 2000
    Posts
    219
    Code:
    B = 200
    Response.Write Session("A" & B)
    I think that should do the trick.

  3. #3
    Guest
    what's wrong with arrays?
    they are amazingly powerful once you get used to them (that does take some time and energy I do agree)

  4. #4

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Posts
    3
    I agree with you Ines. But I have problem when my data increase about 100,000. I must create a(100000)array but sometime I want to use only a(99999) , and a(99998) . If I create array like that it lost memory.

Posting Permissions

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



Click Here to Expand Forum to Full Width