RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variants.VarCompareValue Function

Returns the relationship between Variants.

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

Variants

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). 

 

VarSameValue 

CompareValue

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