> cat > vardecl | ![]() |
| Documentation |
|
[ STATIC ] { PUBLIC | PRIVATE } Identifier [ Static array declaration ] AS Datatype [ = Expression ]This declares a class global variable.
This variable is accessible everywhere in the class it is declared.
The variable can be initialized with any Expression.
Alternatively, you can initialize the variable with a newly instanciated object.
[ STATIC ] { PUBLIC | PRIVATE } Identifier AS NEW Class ( Arguments ... )
Or you can initialize the variable with a native dynamic array.
[ STATIC ] { PUBLIC | PRIVATE } Identifier AS NEW Native Datatype [ Array dimensions ... ]Note that you can use any expression for specifying array dimensions.