RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ConvUtils.ConvUnitInc Function

Increments a specified measurement by a specified amount.

Pascal
function ConvUnitInc(const AValue: Double; const AType: TConvType; const AAmountType: TConvType): Double; overload;
function ConvUnitInc(const AValue: Double; const AType: TConvType; const AAmount: Double; const AAmountType: TConvType): Double; overload;
C++
Double ConvUnitInc(const Double AValue, const TConvType AType, const TConvType AAmountType);
Double ConvUnitInc(const Double AValue, const TConvType AType, const Double AAmount, const TConvType AAmountType);

ConvUtils

Call ConvUnitInc to increment a measurement by a specified amount. The result is returned in the same measurement units as the original amount, although the amount by which the measurement is incremented can be expressed using a different unit of measurement in the same family. 

AValue is the original measurement. 

AType is the unit of measurement of the starting amount and the return value. 

AAmount is the amount by which to increase AValue. If this parameter is omitted, it is assumed to be one. 

AAmountType is the unit of measurement for AAmount. 

 

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