IPB_Session interface:
GetDecimalString method
Description
Converts decimal data in a pbdec object
to a string.
Syntax
|
1 |
GetDecimalString(pbdec <span>dec</span>) |
|
Argument |
Description |
|---|---|
|
dec |
The pbdec data object |
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:
|
1 |
case pbvalue_dec:<br>if (ci->pArgs->GetAt(i)->IsNull())<br>{<br>   pArguments[i].dec_val = Session->NewDecimal();<br>   Session->SetDecimal(pArguments[i].dec_val, "1.0");<br>}   <br>else<br>   pArguments[i].dec_val = <br>      ci->pArgs->GetAt(i)-><span>GetDecimalString</span>();<br>break; |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest