Solved

Using .GetUpperBound(0) for 2 dimentional arrays

Posted on 2006-11-22
2
421 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

751 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