◄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►