Variable declarators let you define a variable by giving the variable a name. Optionally, you can also assign a value to a variable when you declare it by using the Assignment operator. The following are variable declarators in Crystal syntax.
Usage
Local CurrencyVar range x
Local DateTimeVar range x
Local CurrencyVar array x
Local DateTimeVar array x
Local NumberVar range array x
Local CurrencyVar range array x
Local DateVar range array x
Local TimeVar range array x
Local DateTimeVar range array x
Local StringVar range array x
Declares a local variable x that can hold data of a type corresponding to the variable declarator used.
Local variables retain their value only for the given evaluation of the formula in which they occur.
Comments
A variable declarator must be used to declare a variable before the variable can be used in a formula.
Local specifies a variable with local scope. You can use the keywords Global, and Shared instead of Local to specify different scopes. You can also omit the scope keyword and start the variable declaration with the type name. This is the same as declaring a Global variable.