Data.FmtBcd.BCDToCurr

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function BCDToCurr(const BCD: TBcd; var Curr: Currency): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall BCDToCurr(const TBcd &BCD, System::Currency &Curr);

Properties

Type Visibility Source Unit Parent
function public
Data.FmtBcd.pas
Data.FMTBcd.hpp
Data.FmtBcd Data.FmtBcd

Description

Converts a binary-coded decimal value (BCD) to the corresponding Currency value.

Use BCDToCurr to convert a binary-coded decimal value, such as is stored in a physical BCD database field, into a Currency value, which is the representation used by TBCDField objects. BCDToCurr returns true if the BCD value passed as the BCD parameter is successfully converted into a Currency object which is passed out as the Curr parameter.

See Also