Converts a string to the corresponding binary-coded decimal (BCD) value.
function StrToBcd(const AValue: string): TBcd;
TBcd StrToBcd(const AnsiString AValue);
FMTBcd
Use StrToBcd to convert a string into a binary-coded decimal value. The decimals and precision are inferred from the digits present in the string.
StrToBcd converts the string specified by aValue and returns the resulting BCD value. If aValue does not represent a value that can be expressed as a TBcd, StrToBcd raises an exception.
BcdToStr
BcdToStrF
FormatBcd
TryStrToBcd
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|