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")
PRINT "Hello", 0,0
GLBasic calls a set of subroutines with this if they exist:
shortly before the program quits. Just close your files and RETURN as soon as possible.
If a windows message is avaliable. Read it with PeekMessage (... PM_NOREMOVE).