Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: 2d arrays

  1. #1
    Senior Coder
    Join Date
    Apr 2003
    Location
    England
    Posts
    1,192
    Thanks
    5
    Thanked 13 Times in 13 Posts

    2d arrays

    1d arrays you can write as
    somearray = Array("fgsdgg",2,"gsgsg")
    or
    somearray(0) = "fgsdgg"
    somearray(1) = 2
    somearray(2) = "gsgsg"

    is ther any way to do the 1st method with 2d arrays or do you have to use the 2nd method (+ commas )

  • #2
    Senior Coder
    Join Date
    Apr 2003
    Location
    England
    Posts
    1,192
    Thanks
    5
    Thanked 13 Times in 13 Posts
    i hate being ignored ¬_¬

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Surprisingly, this works:

    Code:
    dim ee
    ee = Array(Array(1,2,3),Array(4,5,6),Array(7,8,9))
    response.write ee(0)(0)
    Check out the Forum Search. It's the short path to getting great results from this forum.


  •  

    Posting Permissions

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