RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ConvUtils.ConvUnitAdd Function

Adds two measurements and returns the result using a specified unit of measurement.

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

ConvUtils

Call ConvUnitAdd two add two measurements and obtain the result in a specified conversion type. 

AValue1 and AValue2 are the two measurements to be added. 

AType1 is the unit of measurement for AValue1. 

AType2 is the unit of measurement for AValue2. 

AResultType is the unit of measurement for the resulting value. 

 

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