Main sections
CALLBYNAME()
ok# = CALLBYNAME( sub_name$ )
This command allows to call a subroutine via the name as a string. If you don't see the advantage of this, switch to using GOSUB instead!
The return value is either TRUE or FALSE, indicating whether the subroutine exists or not.
ok = CALLBYNAME("mysub")
SUB mysub:
PRINT "Hello", 0,0
SHOWSCREEN
MOUSEWAIT
ENDSUB
GLBasic calls a set of subroutines with this if they exist:
GLB_ON_QUIT
shortly before the program quits. Just close your files and RETURN as soon as possible.
GLB_WIN32_MSG
If a windows message is avaliable. Read it with PeekMessage (... PM_NOREMOVE).