From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function ConvTypeToFamily(const AType: TConvType): TConvFamily;
function ConvTypeToFamily(const AFrom, ATo: TConvType): TConvFamily;


extern DELPHI_PACKAGE TConvFamily __fastcall ConvTypeToFamily(const TConvType AType)/* overload */;


Type Visibility Source Unit Parent
function public
System.ConvUtils System.ConvUtils


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

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).

See Also