what one command

Blitz3D Forums/Blitz3D Beginners Area/what one 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.

In fact I was missing a CLEAR command too, it makes reinitialiation of eg. a game engine much easier.

The easiest way around it is: keep a list of all your arrays and variables in an include file. You may execute a reinitialisation using a GOSUB (yo), so it will initialize arrays and variables, regardless if they're declared as globals or not (if you place the reinitialisation inside a function, non-globals of the main code will be ignored ).

See, GOSUB is still good for some things.