Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UBOUND for Multi Dimension Array 2

Status
Not open for further replies.

ryandoah

Programmer
Mar 5, 2004
101
US
Can someone tell me how the get the UBOUND for the second dimension of a two dimension array. My array format is:

Code:
myArray(4, currentRow)
I need ubound(currentRow). Whenever I perform the ubound(myArray), it returns the ubound for the first dimension, which I already know, because it's static.

Note: I'm passing the array to the session and the second dimension is variable.

Thanks,
ryandoah
 
Have you tried this ?
UBound(myArray, 2)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Hello ryandoah,

It is ubound(myArray,2).

regards - tsuji
 
Thanks guys,
As a work around, I just set the nuimber as a session variable, then read it when needed. Seems to work fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top