Contents | Index | < Browse | Browse >

 GOSUB  GuiName Routine
 RETURN
 ================================================================
 A Routine is an Event declared with  xROUTINE  and is a bunch
 of commands that can be called and executed from another event.

 GOSUB is the command that does this. 
 You can GOSUB to routines of your or any other GUI files. 

 GuiName  : Is the name of the GUI in which the xROUTINE exists.
            Note that if the GUI is not loaded, the routine will 
            NOT be executed, and the User will NOT be told.

 Routine  : The name of the routine to execute

 GOSUB can also take up to 6  Arguments  and pass them
 to the routine it calls, as internal variables $$ARG.0 to 5

 RETURN is used in xRoutines and it stops execution and 
 returns to the GOSUB statement that called the routine and 
 continues execution with the command following the GOSUB.

 RETURN can also be used in xONLOAD etc type events and can 
 *also* take up to 6 arguments, which it returns to the calling
 GoSub, Guiload etc. as internal variables $$RET.0 to 5

 Example :  Run Gui   Source