Results 1 to 2 of 2

Thread: 2D Arrays

  1. #1

    Thread Starter
    Junior Member deiva's Avatar
    Join Date
    Mar 2000
    Location
    Penang, Malaysia
    Posts
    29

    Post

    I need help with arrays. I cannot seem to figure out how to create 2D arrays in VB6. Firstly, is it possible?

    Thnak you.

    Deiva

  2. #2
    Addicted Member
    Join Date
    Sep 1999
    Posts
    229

    Post


    Hi deiva,

    I don't have VB6, but in VB5 is like this ...


    Dim myArray(2, 2) As Integer

    myArray(1, 1) = 3
    myArray(1, 2) = 4
    myArray(2, 1) = 5
    myArray(2, 2) = 6

    Debug.Print myArray(1, 1)
    Debug.Print myArray(1, 2)
    Debug.Print myArray(2, 1)
    Debug.Print myArray(2, 2)


    Does it help ?
    Keiko

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