RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ConvUtils.ConvUnitCompareValue Function

Indicates the relationship between two measurements.

Pascal
function ConvUnitCompareValue(const AValue1: Double; const AType1: TConvType; const AValue2: Double; const AType2: TConvType): TValueRelationship;
C++
TValueRelationship ConvUnitCompareValue(const Double AValue1, const TConvType AType1, const Double AValue2, const TConvType AType2);

ConvUtils

Call ConvUnitCompareValue to compare the two measurements. The two measurements must measure the same thing (use the same conversion family), but do not need to use the same units of measurement. 

AValue 1 and AValue2 are the two measurements to compare. 

AType1 is the unit of measurement for AValue1. 

AType2 is the unit of measurement for AValue2. 

ConvUnitCompareValue returns  

LessThanValue if AValue1 represents a smaller value than AValue2. 

EqualsValue if AValue1 is equivalent to AValue2. 

GreaterThanValue if AValue1 represents a larger value than AValue2. 

 

ConvUnitSameValue 

CompareValue

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