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);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!