Results 1 to 7 of 7

Thread: *resolved* multidimensional arrays

  1. #1

    Thread Starter
    Lively Member Liquid Pennies's Avatar
    Join Date
    Jun 2002
    Location
    Charlotte, NC
    Posts
    124

    *resolved* multidimensional arrays

    how would you create a 2d or 3d array. i know how to do it in c++, thats really simple, but in vb6 i cant think of a way to create a multidimensional array...

    anyone know?
    Last edited by Liquid Pennies; Jul 14th, 2002 at 04:15 PM.

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    No one's ever sucessfully figured out how to do it....

    Last edited by nemaroller; Jul 14th, 2002 at 04:10 PM.

  3. #3
    Hyperactive Member
    Join Date
    Jun 2002
    Posts
    299
    try this

    Dim MyArray(9,9,9) as Byte

    Creates a 10x10x10 array of bytes.

  4. #4
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    Dim TwoDeeArray(100,100)
    Dim ThreeDeeArray(100,100,100)

    TwoDeeArray(1,1,1) = "hi"
    TwoDeeArray(1,1,5) = "world"

    and so on.
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  5. #5
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    o wow 3 people posted at the same time
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  6. #6
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    yes, but mine was going to be more fun...

  7. #7

    Thread Starter
    Lively Member Liquid Pennies's Avatar
    Join Date
    Jun 2002
    Location
    Charlotte, NC
    Posts
    124
    wow, 3 posts all at once...its a conspiracy!

    thanks for your help...i was trying

    VB Code:
    1. Dim MyArray(9)(9)(9)



    thanks everyone

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