DIM keyword
Declares a variable as a specified data type (IMAGE, TEXT, STRING, ...). DIM cannot be used within a SUB, IF, etc. ; only in the main of the script (recommended to declare all DIM at the beginning of script). A variable must always be set a value, otherwise an error occurs. Variable names must start with a letter, then letter, number or underscore.
Syntax
DIM variable AS type
Parameters
- variable: a unique variable name. Cannot use recognized command names (required)
- type: data type (required)
Example
DIM myText AS STRING
DIM myNumber AS INTEGER
DIM myImage AS IMAGE
Go back to list of Keywords.