RAD Studio VCL Reference
Variants.VarCompareValue Function

Returns the relationship between Variants.

function VarCompareValue(const A: Variant; const B: Variant): TVariantRelationship;
TVariantRelationship VarCompareValue(const Variant A, const Variant B);

Call VarCompareValue to determine the relationship between two Variants.  

A and B are the values to compare.  

VarCompareValue returns a value that indicates whether A and B are equal (vrEqual), whether one is greater than the other (vrLessThan or vrGreaterThan), or whether the two values can't be ordered relative to each other (vrNotEqual). 


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