RETURN: Return from a Procedure Subroutine

rawhtml109#


#command1322#

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.

<#1326#>Examples:<#1326#>

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