qck.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.
COMMON Statement
  Summary  Details  Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 Defines global variables for sharing between modules or between chained
 programs.
 
    COMMON [SHARED] [/blockname/] variablelist
 
    ■ SHARED          Indicates variable to be shared with all SUB or
                      FUNCTION procedures in the module
 
    ■ /blockname/     Name of memory block location where COMMON variables
                      are stored (slashes required); if omitted, variables
                      are stored in a blank common area
 
    ■ variablelist    List of variables to share:
 
                      variable[()] [AS type] [, variable[()] [AS type]]...
 
                      • variable  Any valid variable name
 
                      • ()        Indicates array declaration
 
                      • AS type   Any valid data type; use a separate AS type
                                  clause for each variable defined
 
 See Also
    $INCLUDE Metacommand             Keeping Variables Common
    OPTION EXPLICIT Statement        Scope Rules
    Using Named COMMON               Using COMMON with CHAIN