Building an session array?

Results 1 to 3 of 3

Thread: Building an session array?

  1. #1
    Join Date
    Dec 1969
    Posts
    730

    Default Building an session array?

    I am trying to build an array that will be passed as a session variable. My question is how would you fill an array with the information on the page (such as variables).

  2. #2
    Join Date
    Dec 1969
    Posts
    730

    Default RE: Building an session array?

    No one can help, I can not believe that I have stumped everyone, or have I?

  3. #3
    Join Date
    Dec 1969
    Posts
    41

    Default RE: Building an session array?

    I wouldn&#039t say you&#039ve stumped everyone. Perhaps you would consider giving a little more detailed question. The answer you get is only as good as the question you ask, right?<BR><BR>try this:<BR><BR>Dim TheCart(MaxShoppingCartItems, ShoppingCartAttributes) <BR>Session("Cart") = TheCart<BR>&#039you now have an array in a session var<BR><BR><BR>&#039here you can access shtuff<BR>do until flag = 1 or i &#062; MaxItems<BR> if Session("aCart("& i &", 0)") = "" then<BR> Session("aCart("& i &", 0)") = bookID<BR> Session("aCart("& i &", 1)") = rs.fields("Title").Value<BR> Session("aCart("& i &", 2)") = rs.fields("Price").Value<BR> Session("aCart("& i &", 3)") = 1 &#039the quantity<BR> flag = 1<BR> end if<BR> i = i + 1<BR> loop

Posting Permissions

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