Ubound a 2D array

Results 1 to 2 of 2

Thread: Ubound a 2D array

  1. #1
    Phoebe Guest

    Default Ubound a 2D array

    Hi All,<BR>If I have declared an array <BR>Redim x(A,B)<BR>that is with a 2D array of row size of A and column size of B <BR>I use UBound(A) ,it only returns the row size A.<BR>If I wanna show the size of one row,just like <BR>UBound(x(A))<BR>or <BR>UBound(x(A,0))<BR>which I expected to return B,that is the column size. <BR>But both fails,Can Anyone Help ?

  2. #2
    Join Date
    Dec 1969

    Default RE: Ubound a 2D array

    The actual function signature is UBound(array, [dimension]) - if dimension is unspecified then it defaults to 1. So what you want is UBound(x, 2).<BR><BR>Dunc

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts