System.ConvUtils.ConvTypeToFamily

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

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

Description

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