Extend header files

Previous topic - Next topic

9940

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
Code (glbasic) Select

PRINT VERSION$, 100, 100
SHOWSCREEN
MOUSEWAIT


include1.gbas
Code (glbasic) Select

GLOBAL VERSION$ = "1.000" //error : command not inside function or sub

amarliani

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.

Schranz0r

the last update fixed that !
you have the last update?
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

kaotiklabs


As long as I know needing to add a blank file at the end of the file is still unpatched.
Vote Cthulhu! Because the stars are right!!!!
Ia Ia Cthulhu F' tang!

Kitty Hello

It's fixed in version 7, which is not out, yet. But soon. Promise ;)