Document Templates : DGL Statements : Declaration Statements : CONSTANT Statement

CONSTANT Statement

Statement Syntax:

CONSTANT data-type identifier := value , ... ;

Constants are identifiers that have a defined value that cannot be changed in DGL statements.

The keyword CONSTANT appears only once in the declaration section, before the data-type assignments for constants. Each data-type statement may be followed by as many identifiers of the same type as you want to define.

For Example:

CONSTANT integer a:=1, b:=2, c:=3;

As many type statements as desired may follow the CONSTANT keyword.

For Example:

CONSTANT
STRING activity_name:=’Print’;
FLOAT a:=3.243;
INTEGER c:=6;

The constant type may not be a Statemate element, or a list of type.

The identifiers in the CONSTANT statement must have their values assigned in the statement. The value may be any expression not containing variables or parameters.