Declaration and Constant initialization |
Top Previous Next |
Constants are preceded by the Const key word and consist of a name and a type: Const Name:= ….
Example 1: // constant is initialized with a Float value Const PI=3.14;
Example 2: // constant is initialized with a String value Const Title='Summary Report';
Example 3: // constant is initialized with a Integer value Const RightAngle=90;
|