RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
FMTBcd.BCDToCurr Function

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

Pascal
function BCDToCurr(const BCD: TBcd; var Curr: Currency): Boolean;
C++
Boolean BCDToCurr(const TBcd BCD, Currency Curr);

FMTBcd

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. 

 

CurrToBCD 

TBCDField 

TField

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