RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDelegatedComparer.Compare Method

Compare is a generic method that compares two values.

Pascal
function Compare(const Left: T; const Right: T): Integer; override;
C++
virtual __fastcall int Compare(const T Left, const T Right);

Use the Compare method to compare two values of the same type. As implemented in TDelegatedComparer, Compare simply forwards the call to the user-supplied routine. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!