(02-21-2023, 02:26 PM)TempodiBasic Wrote: DIM myArray (1 to 4) AS INTEGER ' this is static
DIM my2ndArray (1 to M) AS INTEGER' This is dynamic and M =0
Very good catch!
However variable M cannot be zero if there should be a "1 TO" or any value at all higher than one.
That doesn't seem to be indicated by the QB64 Wiki (I don't sleep well lately so my eyes are tired now):
https://qb64phoenix.com/qb64wiki/index.php/DIM
That older site linked to earlier only shows examples that worked in GW-BASIC, it must have been around to convert those old programs to run in QBasic...
EDIT: Agree with you that this line should have been flagged by the IDE as an error:
Code: (Select All)
DIM AS Test xyz(1 TO 10, abc())
However I think that was presented as fake code by the OP.