Results 1 to 2 of 2

Thread: Shopping Cart + ASP Array

  1. #1
    Join Date
    Oct 2006

    Shopping Cart + ASP Array

    I'm attempting to build a shipping cart using ASP.

    I want to store some objects in an array, but every time I attempt this it fails.

    1st asp page
    Class cart
    dim id
    dim name
    dim comment
    end class
    2nd asp page

    set blah = new cart
    blah.id = 123
    blah.name = "lala"
    blah.comment = "something"
    Dim newArray()
    ReDim Perserve newArray(0)
    newArray(0) = blah
    my error occurs when I attempt to put the object in the array. Is it possible for an array to hold objects, I don't see why it couldn't.

    Thanks in advance.

  2. #2
    Join Date
    Oct 2006
    Figured out my error. My syntax knowledge is weak!

    Please close this thread as it's solved.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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