Node:Exclude, Next:Exit, Previous:Erase, Up:Reference

### Exclude

#### Synopsis

    Exclude (set_variable, ordinal_value);

#### Description

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.

#### Conforming to

`Exclude` is a Borland Pascal extension.

#### Example

    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.

#### See also

Keywords, Set Operations, set, in, Include.