RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.Include Function

Adds an element to a Delphi set or adds an event handler in .NET applications.

Pascal
procedure Include(var S: set of T; I: T);
C++
Include(set of T S, T I);

System

When the first argument of Include is a set type variable, Include adds an element to the set. The expression Include(S,I) 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 using the + operator. 

On the .NET platform, Include is overloaded. When the first argument of Include is a multicast event, and the second argument is an event handler, Include adds the event handler as a listener to the event. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!