March 2000
Intermediate to advanced
576 pages
18h 13m
English
In Keyword
Ordinal expressioninSet expression
The in operator tests set membership. It returns
True if the ordinal value is a member of the set, and it returns
False otherwise.
The base type for a set is limited to at most 256 members. The
in operator tests only the least significant byte
of the ordinal expression. The following example, therefore, always
calls ShowMessage:
var
X: set of 0..7;
begin
X := [0];
if 512 in X then
ShowMessage('The in operator tests only the low byte of 512.');See the set keyword for an example.
| Exclude Procedure, High Function, Include Procedure, Low Function, Set Keyword |
Read now
Unlock full access