Node:Exclude, Next:Exit, Previous:Erase, Up:Reference
Exclude (set_variable, ordinal_value);
Remove (subtract) a single element from a set. ordinal_value
must be compatible with the base type of set_variable.
Exclude is equivalent to:
set_variable := set_variable - [ordinal_value];
If set_variable does not contain ordinal_value, nothing happens.
Exclude is a Borland Pascal extension.
program ExcludeDemo;
var
Ch: Char;
MyCharSet: set of Char;
begin
MyCharSet := ['P','N','L'];
Exclude (MyCharSet , 'N'); { L, P }
end.
See other examples in set and Set Operations.