Globals inside Functions

Blitz3D Forums/Blitz3D Beginners Area/Globals inside Functions

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.

sometimes the code would be much better structured if you could declare globals inside functions.

It would not get messed up if you call the function twice. But you should never do that.
this works fine
For a=1 To 2
	Local x
	Print x
	x=1
Next