Results 1 to 4 of 4

Thread: Initializing arrays

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    UK
    Posts
    78
    Dim MyArray(,) As Integer

  2. #2
    Member
    Join Date
    Feb 2001
    Posts
    37
    Hi WideAwake.

    Ok, but how can I pass the initial values for the 2 dimensions at the same line? Can I put something like {1,2,3},{1,2,3} ?

    Thanks.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    UK
    Posts
    78
    Dim MyArray(3,3) As Integer
    Would give you a 3x3 block

    Or maybe at the begining of your form you could have:
    Dim MyArray(,) As Integer

    Then maybe you need to run a routine before you know the size, so once the size has been found you could do something like:

    ReDim MyArray(amount-1, rows) as integar

  4. #4
    Tygur
    Guest
    Code:
    Dim A(,) As String = {{"0,0", "0,1"}, {"1,0", "1,1"}}

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