Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Using .GetUpperBound(0) for 2 dimentional arrays

Posted on 2006-11-22
2
Medium Priority
?
432 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 2000 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

772 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