System.Include

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Include(var S: Set; I: Ordinal);

Properties

Type Visibility Source Unit Parent
procedure public System.pas System System

Description

Adds an element to a Delphi set.

When the first argument of Include is a set type variable, Include adds an element to the set. The Include(S,I) expression corresponds to S := S + [I], where S is a set type variable and I is an expression of a type compatible with the base type of S. The Include procedure generates more efficient code than would have been obtained by using the plus (+) operator.

See Also


Code Examples