Don't you need $DYNAMIC to use REDIM?
Don't you need $DYNAMIC to use REDIM?
Sorry Steve we are the redundant brother again, but I just got PM and decided to make public my demo.
QB64 allows this to run...Code: QB64: [Select]
QB does not, throwing a subscript out of range error at line 5.
Note that both QB64 and QB throw that error if REDIM is used instead of DIM...Code: QB64: [Select]
Pete
Oh, not needing a way around it. QB64 is supposed to react like QB and this is one of the few instances where it acts differently. It is not a critical issue, because in this case, QB64 allows something that QBasic did not. If it were the other way around, it would need to be fixed or at least addressed in the wiki.
So QB64 allows us to do this...Code: QB64: [Select]
a$(10) = "erase": a$(11) = "x" ERASE a$ a$(11) = "y"
Can't run that to completion in QuickBASIC.
Pete
Maybe Pete's Peeked and Poked one too many times?