RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ConvUtils.ConvTypeToFamily Function

Returns the identifier for the conversion family with which a conversion type or pair of types is registered.

Pascal
function ConvTypeToFamily(const AType: TConvType): TConvFamily; overload;
function ConvTypeToFamily(const AFrom: TConvType; const ATo: TConvType): TConvFamily; overload;
C++
TConvFamily ConvTypeToFamily(const TConvType AType);
TConvFamily ConvTypeToFamily(const TConvType AFrom, const TConvType ATo);

ConvUtils

ConvTypeToFamily returns the conversion family identifier for the family of the specified conversion type or types. Conversion types are associated with a conversion family by the RegisterConversionType function when the conversion type is registered. 

AType is the identifier for a registered conversion type (unit of measurement).  

AFrom and ATo are two registered conversion types that are assumed to be in the same family. 

If AType is not registered, or if AFrom and ATo are not registered with the same conversion family, ConvTypeToFamily returns CIllegalConvFamily (0). 

 

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