Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Player221328y@sSam not in some languages. A 0-indexed array with 2 elements will have a length of 1.
-
Player221328y@sSam perhaps it's changed now, but iirc the older implementations of the .net languages (vb, c#, etc) did.
-
STRINIX1578y@Player2 pretty sure that's not true. Length has always returned the number of elements
-
bguiz3678y@Player2 nah, length has always been actual number of elements, even in VB6 (which was indeed 1-indexed, unless you used the options base command, or used VB6 in version of visual studio after they released .NET).
Source:
The following declaration reserves 21 elements for the array Weight:
Dim Weight(20) As Single
https://msdn.microsoft.com/en-us/...(v=vs.71).aspx -
@Player2 from memory, I would say that vb based langages like realbasic (now xojo) had UBound properties that have the highest index in the array
True shit.
undefined