I know somewhere in the docs it shows something about 0 based arrays vs 1 based arrays (but can't find it at the moment), but what I do not find is the following
An array purposely not dimensioned yet comes back with it appearing as if it has been dimensioned???
Lbound = 0, but Ubound reports correctly with -1
Am I missing something or is this a bug?
Code:
#COMPILE EXE #DIM ALL FUNCTION PBMAIN () AS LONG DIM MyArray() AS LONG MSGBOX FUNCNAME$ + $CR + "Lbound = " + TRIM$(STR$(LBOUND(MyArray))) + $CR + "Ubound = " + TRIM$(STR$(UBOUND(MyArray))) END FUNCTION
Lbound = 0, but Ubound reports correctly with -1
Am I missing something or is this a bug?
Comment