GetDecimalString
Description
Converts decimal data in a pbdec object to a string.
Syntax
|
1 |
GetDecimalString(pbdec dec) |
|
Argument |
Description |
|---|---|
|
dec |
The pbdec data object to be converted to a |
Return value
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:
|
1 2 3 4 5 6 7 8 9 10 |
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; |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest