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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Two dimention dynamic Array (row ,column)

Status
Not open for further replies.

vbakan

MIS
Dec 6, 2006
24
GB
Hi All,

I have problem in finding the dimention of the two dimention array

eg

MyArray looks like this
0 1 2 3 4 5 6 7 8 9
a s d f g h j k z x

I want to get the x location in my example (2,9) When I use UBound(MyArray) I get 1, it is giving the row max.

Can any one help me how to get the col max in this sinario please ?

Thanks,
 



Hi,

There's [tt]UBound(MyArray, 1)[/tt] and [tt]UBound(MyArray, 2)[/tt] depending on which dimenstion you want.

Skip,

[glasses] [red][/red]
[tongue]
 
Pretty rough, hu? Kind of grating you the wrong way?

Just kidding of course, just found that humorous! [wink]

--

"If to err is human, then I must be some kind of human!" -Me
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top