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.
DIM Statement
  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