In the header files you can't assign variables out of a function or a sub.
But may be useful if you can declare global variables (like costants).
main.gbas
PRINT VERSION$, 100, 100
SHOWSCREEN
MOUSEWAIT
include1.gbas
GLOBAL VERSION$ = "1.000" //error : command not inside function or sub
There is a strange bug in the editor which will be fixed in new V 7. Add a blank line at the bottom of all your gbas files an this error disappears.
the last update fixed that !
you have the last update?
As long as I know needing to add a blank file at the end of the file is still unpatched.
It's fixed in version 7, which is not out, yet. But soon. Promise ;)