Solved

Using .GetUpperBound(0) for 2 dimentional arrays

Posted on 2006-11-22
2
420 Views
Last Modified: 2009-07-29
Hi All,

I would like to use the following:

m_objSequence().GetUpperBound(0)

but m_objSequence is a two dimentional array. VS doesnt like it and says that "Number of indices is less than the number of dimentions of the indexed array".

Any idea what I need to put in the () to make it work?

Thanks.
0
Comment
Question by:eadam-uk
2 Comments
 
LVL 10

Accepted Solution

by:
Kinger247 earned 500 total points
ID: 17999670
Mr. eadam-uk your not having a good time are you !

Depends on which dimension ...

m_objSequence.GetUpperBound(0) = first dimension

m_objSequence.GetUpperBound(1) = second dimension

0
 

Author Comment

by:eadam-uk
ID: 17999768
Thanks Kinger247!

I am having lots of fun learning VB ;-)

My book takes me so far into the pond of knowledge and then leaves me there to drown and I don't think F1 has given me the answer I need yet.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question