Dim
Synopsis
Dim varname[, varname] . . .
Arguments
The Dim statement syntax has these parts:
varname | Name of the variable; follows standard variable naming conventions. |
Description
Variables declared with Dim at the script level are available to all procedures within the script. At the procedure level, variables are available only within the procedure.
All uninitialized variables are treated as zero-length strings ("").
Examples
The following examples illustrate the use of the Dim statement:
Dim MyStr ' Declare one variable
Dim MyVar, MyNum ' Declare two variables
Notes
Caché Basic does not require the dimension of arrays to be specified, and therefore does not implement the ReDim Statement.
See Also
-
Set Statement