◄Summary► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back► ────────────────────────────────────────────────────────────────────────────── Declares an array or specifies a data type for a nonarray variable. DIM [SHARED] variable[(subscripts)] [AS type] [,variable[(subscripts)] [AS type]]... ■ SHARED Causes specified variable or array to be shared with all SUB or FUNCTION procedures in the module ■ variable Name of an array or nonarray variable ■ subscripts Dimensions of the array: [lower TO] upper [,[lower TO] upper]... • lower (Default - 0) Lower boundary of the array's subscripts • upper Upper boundary of the array's subscripts ■ AS type (Default - SINGLE) Declares data type of the array or variable; use a separate AS type clause for each variable defined See Also ◄OPTION EXPLICIT Statement► ◄REDIM Statement► ◄Scope Rules►