IPB_Session interface:
GetDecimalString method
Description
Converts decimal data in a pbdec object to a string.
Syntax
GetDecimalString(pbdec dec)
Argument |
Description |
---|---|
dec |
The pbdec data object to be converted to a string. |
Return Values
LPCTSTR.
Examples
This code checks whether a value in the PBCallInfo structure is null. If it is not, it sets the value in the pArguments array to the value in PBCallInfo:
case pbvalue_dec:
if (ci->pArgs->GetAt(i)->IsNull())
{
pArguments[i].dec_val = Session->NewDecimal();
Session->SetDecimal(pArguments[i].dec_val, "1.0");
}
else
pArguments[i].dec_val =
ci->pArgs->GetAt(i)->GetDecimalString();
break;