Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Is there any reason why some objects in VB.NET count with the first item being 0, instead of 1. (e.g. the listbox)

Anybody know why they do this? It ends up making things more confusing/complicated.

To err is human, to really foul things up requires a computer.
  • *Experts*
Posted

If Microsoft did everything correctly, ALL arrays, collections,

hash tables, string characters, etc. should have a base index of 0

(except, of course for the archaic Collection class). This is the way

all other programming languages do it, so it's only natural that

VB.NET would follow suit. Goodness knows why VB6 wasn't that

way.

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

  • *Experts*
Posted

Other than the Collection class, I can't think of any 1-based objects in .NET.

 

-Ner

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...