Passing variables into the RESTORE command

Blitz3D Forums/Blitz3D Beginners Area/Passing variables into the RESTORE command

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

You can't do that.
I'm sure the reason why is because that would allow a variable with ANY VALUE to appear at runtime, which, if happened, would cause all sorts of garbage data to be read in or even cause the program to try to read memory outside of it's range (which would crash the program).

So, like EpicBoy stated, you have to use a SELECT statement or similar method.