qb45qck.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
SUB...END SUB Statement QuickSCREEN
  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