Library /sys$common/syshlp/BASICHELP.HLB  —  ON  GOSUB
  The ON GOSUB statement transfers program control  to  one  of  several
  subroutines, depending on the value of a control expression.

  Example

  150    ON Control% GOSUB 100, 200, 300 OTHERWISE 500

1  –  Syntax

      ON int-exp GOSUB target,...  [ OTHERWISE target ]
Close Help