RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ConvUtils.ConvertFrom Function

Converts a measurement from the specified units to the base units of its conversion family.

Pascal
function ConvertFrom(const AFrom: TConvType; const AValue: Double): Double;
C++
Double ConvertFrom(const TConvType AFrom, const Double AValue);

Call ConvertFrom to convert the value AValue from the units specified by AFrom to the base units of the conversion family for AFrom.  

If AFrom is not a registered conversion type, ConvertFrom raises an EConversionError exception. 

 

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