RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ConvUtils.DescriptionToConvType Function

Retrieves the identifier for a conversion type given its name and family.

Pascal
function DescriptionToConvType(const ADescription: string; out AType: TConvType): Boolean; overload;
function DescriptionToConvType(const AFamily: TConvFamily; const ADescription: string; out AType: TConvType): Boolean; overload;
C++
Boolean DescriptionToConvType(const AnsiString ADescription, TConvType AType);
Boolean DescriptionToConvType(const TConvFamily AFamily, const AnsiString ADescription, TConvType AType);

ConvUtils

DescriptionToConvType returns the conversion type identifier for the conversion type (measurement unit) that was registered under the name specified by ADescription. 

AFamily is the identifier for the conversion family supplied to the RegisterConversionType function when the conversion type was registered. 

ADescription is the name supplied to the RegisterConversionType function when the conversion type was registered. Typically, it is the plural form of the measurement unit name. For example, the description for the auAcres conversion type is 'Acres'. 

AType returns the identifier for the conversion type. 

DescriptionToConvType returns true if it can successfully locate and return the specified conversion type, false otherwise. 

 

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