Results 1 to 3 of 3

Thread: UBOUND question

  1. #1

    Thread Starter
    Frenzied Member Blobby's Avatar
    Join Date
    Oct 2001
    Location
    England
    Posts
    1,512

    Unhappy UBOUND question

    Im having some probs with my multi-dim array setup still.
    I have swapped the dimensions over (row,col) to (col,row) so i can redim the elements but how now do i get the Ubound of the array as it is displaying the number of colums and not the number of rows?
    There are 3 types of people in this world.........those that can count, and those that can't.

    Blobby

  2. #2
    Addicted Member
    Join Date
    Aug 2002
    Location
    London UK
    Posts
    255
    VB Code:
    1. UBound(sArray, 2)
    The number selects which dimension to get the UBound from, in this case, the second which you've just swapped from col to row.
    Not at all related to sheep...

  3. #3

    Thread Starter
    Frenzied Member Blobby's Avatar
    Join Date
    Oct 2001
    Location
    England
    Posts
    1,512
    Fab! Thanks Bumbandit I owe u one
    There are 3 types of people in this world.........those that can count, and those that can't.

    Blobby

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