Results 1 to 10 of 10

Thread: Populating 2d arrays [resolved]

Threaded View

  1. #1

    Thread Starter
    Addicted Member mr_metal_hed's Avatar
    Join Date
    Aug 2002
    Location
    NC
    Posts
    149

    Populating 2d arrays [resolved]

    I know that I can populate a 1d array like this:
    VB Code:
    1. Dim Ax1()
    2. Cat = Array("q", "w", "e", "r", "t", "y", "u", "i", "o")
    Is there a similar way to populate an array of 2d or more? There must be a better way than this:
    VB Code:
    1. Dim Ax2(2, 2)
    2. Ax2(0, 0) = "q": Ax2(0, 1) = "w": Ax2(0, 2) = "e"
    3. Ax2(1, 0) = "r": Ax2(1, 1) = "t": Ax2(1, 2) = "y"
    4. Ax2(2, 0) = "u": Ax2(2, 1) = "i": Ax2(2, 2) = "o"
    Last edited by mr_metal_hed; Feb 4th, 2004 at 11:27 AM.

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