NewDecimal

PowerBuilder Native Interface

IPB_Session interface:

NewDecimal method

Description

Allocates resources for a new decimal data object.

Syntax

NewDecimal( )

Return Values

pbdec or null on failure.

Examples

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)->GetDecimal();

See Also