Solved

Can the starting index be changed from 0 to 1 in arrays?

Posted on 2013-12-19
1
169 Views
Last Modified: 2013-12-20
I'm using Visual Studio 2012.  I know in previous versions that there was an "Option Base 1" command that would be inserted in a Module file. I believe the reason for this was so you could loop thru an array starting at indice 1 rather than 0. I've tried doing this with VS 2012 and it's not recognized. So my question is...is it still possible to start a For Loop using 1 as the starting indice rather than 0? If so, how is it done?

Thanks!
0
Comment
Question by:BlakeMcKenna
1 Comment
 
LVL 62

Accepted Solution

by:
Fernando Soto earned 500 total points
ID: 39730997
Hi BlakeMcKenna;

Array's always start at index zero. The only way I can think of start an array at index 1 rather than index zero is just not use the first element of the array.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

914 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now