System.ConvUtils.TryConvTypeToFamily

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function TryConvTypeToFamily(const AType: TConvType; out AFamily: TConvFamily): Boolean;
function TryConvTypeToFamily(const AFrom, ATo: TConvType; out AFamily: TConvFamily): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall TryConvTypeToFamily(const TConvType AType, /* out */ TConvFamily &AFamily)/* overload */;

Properties

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

Description

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

TryConvTypeToFamily looks up 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.

AFamily returns the identifier of the conversion family.

TryConvTypeToFamily returns true if the family can be obtained (if AType is a registered conversion type or if AFrom and ATo are both registered in the same family), false otherwise.

See Also