Solved

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

Posted on 2013-12-19
1
168 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
Comment Utility
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 Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
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 …
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 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

16 Experts available now in Live!

Get 1:1 Help Now