> lang > localdecl | ![]() |
| Documentation |
|
DIM Identifier AS Datatype [ = Expression ]
Declare a local variable in a procedure or function.
This variable is only accessible to the procedure or function where it is declared.
The variable can be initialized with any expression.
Alternatively, you can initialize the variable with a newly instanciated object.
DIM Identifier AS NEW Class ( Arguments ... )
Or you can initialize the variable with a native dynamic array. See Array Declaration for more information.
You can declare several variables on the same line: