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

x
?
Solved

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

Posted on 2013-12-19
1
Medium Priority
?
176 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 64

Accepted Solution

by:
Fernando Soto earned 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
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 …
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Suggested Courses

927 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