IsNull

PowerBuilder Native Interface

IPB_Value interface:

IsNull method

Description

Returns true if the IPB_Value instance contains a null value; otherwise, it returns false.

Syntax

IsNull( )

Return Values

pbboolean

Examples

This example tests whether an IPB_Value instance contains a null value before attempting to obtain its value:

if(ci->pArgs->GetAt(i)->IsObject()) 
{
   if (ci->pArgs->GetAt(i)->IsNull())
     pArguments[i].obj_val=0;
   else
     pArguments[i].obj_val =
        ci->pArgs->GetAt(i)->GetObject();  
     continue;
}
...

See Also