RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.Exclude Function

Removes an element from a Delphi set or removes an event handler in .NET applications.

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

System

When the first argument of Include is a set type variable, the Exclude procedure removes an element from the set. If S is a set type variable, and I is an expression of a type compatible with the base type of S. then Exclude(S,I) corresponds to S := S - [I] but the Exclude procedure generates more efficient code.  

On the .NET platform, Exclude is overloaded. When the first argument of Exclude is a multicast event and the second argument is an event handler, Include removes the event handler from the event's listeners. 

 

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