Results 1 to 3 of 3

Thread: a 3d array

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Location
    Texas
    Posts
    313

    Question

    How can I do a 3 by 3 array like in c++ you would do

    int ARRAYNAME[20][20][20]; but how do you do it in vb?

  2. #2
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    Code:
    Dim arrayName(x, y, z) As dataType
    Harry.

    "From one thing, know ten thousand things."

  3. #3
    Fanatic Member ExcalibursZone's Avatar
    Join Date
    Feb 2000
    Location
    Western NY State
    Posts
    908
    Dim MyArray(X,X,X) As Integer

    The last dimension in an array can be ReDim'ed to be dynamic. But this will work for ya.
    -Excalibur

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