- This is a value that stays the same
throughout a program.
- Constant declarations are done just
above the var declaration (globally or locally – most often globally).
- The data type does not need to be
- Declare a constant by using the reserved
word const followed by the identifier (the name of the constant), an
equal sign and then the value. For example:
sTown = 'Sasolburg';
rRate = 0.3256;
Delphi resources index
Return to Home Page
© JAK Olivier (2008)