Solved

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

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

813 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

9 Experts available now in Live!

Get 1:1 Help Now