DIM Edit

Declares a variable

Syntax: Edit

Description: Edit

Declares a variable by name and reserves memory to accommodate it. Variables must be declared before they can be used in the -lang fb dialect or when using Option Explicit in the other dialects. Only in the -lang qb and -lang fblite dialects variables may be used without first declaring them, in such a case they are called implicit variables. Dim can be used to declare and assign variables of any of the supported data types, user defined types, or enumerations. Depending on where and how a variable or array is declared can change how it is allocated in memory. See Storage Classes. More than one variable may be declared in a single Dim statement by separating each variable declaration with a comma.