| .SUB...END SUB Statement QuickSCREENi |
|
  QuickSCREEN       Details       Example       Contents       Index |
| ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ |
| SUB...END SUB - a procedure statement that marks the beginning and |
|                 end of a subprogram |
| Syntax |
|   SUB globalname[parameterlist][STATIC] |
|     [statements] |
|   [EXIT SUB] |
|     [statements] |
|   END SUB |
|
|     ž globalname is a variable name up to 40 characters long, which does |
|       not appear in any other SUB or FUNCTION statement in the same program |
|     ž parameterlist contains the names of the simple variables and arrays |
      passed to the SUB when it is called (see Details for the syntax of |
|       the parameter list) |
|     ž use the optional STATIC keyword to preserve local variable values |
|       between calls |
|
See also  DECLARE   CALL   SHARED   STATIC Statement |