RETURN: Return from a Procedure Subroutine

rawhtml119#


#command1315#

This command tells VISTA that the execution of the current sub-procedure is complete and to return to any calling procedure or to immediate input mode as is appropriate. This command is intended to allow a return from the procedure as a result of an IF test. In cases where no condition testing is needed, the final END command in the procedure buffer will tell VISTA that the procedure has completed.

<#1319#>Examples:<#1319#>

  1. <#1371#>Here is an example of a conditional exit from a procedure. This procedure may be run with CALL or GO.
    verbatim120#
    <#1371#>
  2. <#1372#>END may be used as return ONLY if it is the last command in the file. Thus a procedure like:
    verbatim121#
    may be executed as a subroutine, but one that looks like:
    verbatim122#
    will not work. Use RETURN instead. <#1372#>