CONST Statement

Declares constants.

CONST name as {Integer|String} = Value

 

Arguments

name      Name of the constant; follows standard variable naming conventions.

 

Remarks

Constants are effectively variables whose value cannot be changed. Constants can only be declared as Integers or Strings. All constants must be initialised.  

Examples

The following examples illustrate the use of the Const statement:

Const ERR_NUM as integer = 23

Const ERR_OK as integer = 0

Const OK_Message as string = "No Errors Found"