Const

Last Modified: 1/1/2021

Defines a constant variable.

Arguments

NameTypeRequiredDescription
VariableName N/A Yes The name of the variable.
Value Numeric Yes The value of your constant variable.

Example

Syntax: Const #<VariableName>, <Value>
    Const #a = 32
    a = #a + 10
    Print #a, a

Remarks

Constants must be defined before they are used and can only be whole numbers. All constants begin with #. Constants are substituted to their numerical values before compiling and are accessible in every scope as if they were a Global variable.

See Also

Dim, Global