05-03-2024, 06:59 AM
I have found a probable bug using AS.
Writing, for example:
DIM A%
it's the same then writing
DIM A AS INTEGER
But it is possible to write:
DIM A%
DIM A$
but we incur into a "Name already in use" error if we write:
DIM A AS INTEGER
DIM A AS STRING
Example:
Writing, for example:
DIM A%
it's the same then writing
DIM A AS INTEGER
But it is possible to write:
DIM A%
DIM A$
but we incur into a "Name already in use" error if we write:
DIM A AS INTEGER
DIM A AS STRING
Example:
Code: (Select All)
OPTION _EXPLICIT
DIM A$
DIM A% '--------------------------> working
'DIM A AS STRING
'DIM A AS INTEGER' ---------------------> not working
A$ = "hello"
A% = 2
PRINT A$, A%