what one command

Blitz3D Forums/Blitz3D Beginners Area/what one command

googlemesilly(Posted 2006) [#1]
clears all variables and arrays ?
thanks !
S/D


octothorpe(Posted 2006) [#2]
End


Regular K(Posted 2006) [#3]
lol


jfk EO-11110(Posted 2006) [#4]
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.


googlemesilly(Posted 2006) [#5]
thanks jfk ! :)