Loading include file multiple times

Blitz3D Forums/Blitz3D Programming/Loading include file multiple times

Don't do that.
I you need the information inside an Include file to be
re-scanned at any time in the code then do something like
this:


;Include your file at the top of your code this way:
Goto no_scan
.scan_it
	Include "my_file.bb"
	return
.no_scan



;Then at any time in your code, just call a Gosub:
if keyhit(28) ;Enter
	Gosub scan_it
endif


This is what I do and it works just good :)

bye!
Paolo.