Tom said:
It's not random at all.... And it's very clear:
Arrays: If the lower bound is not explicitly delcared, then the lower bound
will be the value of Option Base. If Option Base is not explicitly set, then
it defaults to Option Base 0.
Strings: They start at one. Strings are not arrays in VB6 - and the functions
that work on strings start at one.
I personally never really used arrays that didn't start at 0, BUT - this is a
feature that should NOT have been removed from VB. This is one of the few
items where change was made for changes sake - especially since .NET arrays
clearly support non-zero bounds.
It does seem very odd that MS decided to do this for VB.NET given
that, in my view, VB is that help keep MS in the higher level GUI
application development in corporations. C/C++ was more for system
developers. I mean, it was freaking the Killer App "Visual BASIC"
that finally allow them to move on from OS/2 and the IBM partnership.
I am also surprise they did away with VARIANT - isn't this a
fundamental part of OLE automation?
But I do find the "mixed" language interesting. C++ string
concatenation is supported:
Dim s as string = ""
s += "Hello"
s += " "
s += "Tom"
I mean, they did this, but didn't bother to add // or /* */ commenting
or do away with the need to use _ for continuation lines
I mean, if you are going to fundamentally force a HUGE market of VBers
to think differently, then go ahead and add the other C/C++ language
goodies.
Anyway, this seemed like a case where the VB "champions" at MS were
not invited to the design review meeting full of these "Young .NET
punks" who had the card blanc with .NET. They had the final or greater
say.
I can understand the decision somewhat, but I think it was
hypocritical in many ways. At the very least, they should of made it
an compiler option and/or maintain the OPTION BASE X option.
What I find most surprising is that after all these years, it (among
other things) appears to be still a sore issue.
PS: I did not wish this to become a rude war among what appears to be
long time participant friends here
--