DELPHI: Constants
|
- 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
indicated.
- 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:
const
sTown = 'Sasolburg';
rRate = 0.3256;
|
Return to
Delphi resources index
Return to Home Page
? 2024 TeachITZA. Except where otherwise noted, the content on this website is licensed under the terms of the Creative Commons BY SA 4.0 license. https://creativecommons.org/about/cclicenses/