Solved

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

Posted on 2013-12-19
1
171 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 63

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
VS.net 2010 11 48
Help with exporting to excel 4 36
vb.net class 3 21
Toolbar to format all windows forms controls at design time needed 5 15
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

860 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