2-dimensional arrays

Results 1 to 3 of 3

Thread: 2-dimensional arrays

  1. #1
    JayBee Guest

    Default 2-dimensional arrays

    How can I store a 2 dimensional array in a cookie? I have code:<BR><BR>dim mycart(10,20)<BR><BR>&#039lots of code<BR><BR>response.cookies("cart")=mycart<BR><BR >The last line gives a &#039type mismatch&#039 error. I don&#039t get any errors when using session variables, but I&#039d like to use a cookie instead. Any pointers would be appreciated.<BR><BR>JB

  2. #2
    Join Date
    Dec 1969

    Default RE: 2-dimensional arrays

    You can only put text in a cookie, since it&#039s a text file.<BR><BR>you can&#039t store arrays, objects, recordsets or anything in a cookie. put it in a session variable instead<BR><BR>j

  3. #3
    JayBee Guest

    Default RE: 2-dimensional arrays

    Thanks for replying. I guess it&#039s easier to stick with sessions :)

Posting Permissions

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