RETURN: Return from a Procedure Subroutine

rawhtml172#


#command1302#

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.

<#1306#>Examples:<#1306#>

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