Description |
The Of keyword is used as a link in a number of Delphi declarations.
|
|
Related commands |
Array |
|
A data type holding indexable collections of data |
Case |
|
A mechanism for acting upon different values of an Ordinal |
Class |
|
Starts the declaration of a type of object class |
File |
|
Defines a typed or untyped file |
Set |
|
Defines a set of up to 255 distinct values |
|
|
|
Example code : A simple example |
var
letters : set Of 'a'..'z';
begin // Set all of the set values on
letters := ['a'..'z'];
// See if a letter is lower case
if 'g' in letters
then WriteLn('g is a lower case letter')
else WriteLn('g is not a lower case letter');
end;
|
Show full unit code |
g is a lower case letter
|
|