5 ms·
This could be implied with your python comparison, but meanings of things changed as well. For example dim foo as integer(5) in vb6 would give you 6 elements (0
by mysterydip 4y ago
This could be implied with your python comparison, but meanings of things changed as well. For example dim foo as integer(5) in vb6 would give you 6 elements (0-5) of a 16 bit numeric type. In .net it would give you 5 elements (0-4) of a 32 bit numeric type.
For those curious, a really good list of changes is here: http://www.thescarms.com/vbasic/vb6vsvbnet.aspx http://www.thescarms.com/vbasic/vb6vsvbnet.aspx
- groestl 4y agoGuess the Python ref is even more fitting then, given their controversy around the meaning of bytes / strings ;)
- teh_klev 4y ago> For example dim foo as integer(5) in vb6 would give you 6 elements (0-5) Then add into the mix the "Option Base" statement, which if it was declared as "Option Base 1" your aforementioned array would only have elements 1-5. Trying to access element 0 would incur a "Subscript out of range" error.