const Statement
const declares a variable that cannot be changed.
It cannot be assigned to, so an initial value must be provided when declaring the constant.
Use
dim to declare a variable that can be changed.
Syntax
const <VARIABLE> = <VALUE>
- <VARIABLE> is the name of the new constant to declare.
- <VALUE> is the constant value. It cannot be changed after declaration.
Usage
The following simple example declares a constant for Tau, which is double Pi.