Method
Converts a BCD number to a string.
Category
BCD
Syntax
Function BcdToStr(ByVal hBcd As Long) As String
hBcd
The handle to the BCD number.
Example
hBCD = CF1.AllocBcd
tmpStr = "42"
CF1.StrToBcd tmpStr, hBCD
tmpVar = CF1.BcdToStr(hBCD)
If tmpStr <> CStr(tmpVar) Or VarType(tmpVar) <> vbString Then
logWr "BCDToStr or StrToBCD failed"
Else
logWr "BCDToStr and strToBCD OK"
End If
CF1.FreeBcd hBCD
Comments
Returns the BCD number hBcd as a string.