RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
VarUtils.VarCmp Variable

VarCmp is a variable used to specify the function that compares two variants.

Pascal
VarCmp: function(const Left, Right: TVarData; LCID: Integer; Flags: LongWord): HRESULT;
C++
function(const Left, Right: TVarData; LCID: Integer; Flags: LongWord): HRESULT VarCmp;

Use VarCmp to specify the function that compares two variants, given through the Left and Right parameters. The LCID parameter is a locale identifier and Flags specifies the flags used in the comparison.  

VarCmp returns the result of the comparison, which can be one of the following.  

 

 

Result 
Meaning 
Left is less than Right 
Left is equal to Right 
Left is greater than Right 
Either one of Left or Right is nil

 

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