AREXX capable GOSUB GuiName RoutineName RETURN A Routine is an Event declared with the @{" xROUTINE " link xroutine} command and is nothing more than a bunch of commands that can be called and executed from another event. GOSUB, is the command that does this. You can call GOSUB for routines in other GUI files. This enables you to have GUI files which contain only routines, which you can call on from other GUIs. GuiName : 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. RoutineName : The name of the routine to execute GOSUB can also take up to 6 @{" Arguments " link Passing_args} and pass them to the routine it calls, as internal variables $$ARG.0 to 5 RETURN, returns from the routine which GOSUB went to and continues execution with the command following the relevant 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 " system "gui guis:docs/tutorials/GoSub.gc"} @{" Source " link "guis:docs/tutorials/GoSub.gc/Main"}