IsObject

PowerBuilder Native Interface

IPB_Value interface:

IsObject method

Description

Returns true if the IPB_Value instance contains an object or object array; otherwise it returns false.

Syntax

IsObject( )

Return Values

pbboolean

Examples

This example tests whether an IPB_Value instance contains an object before attempting to obtain the object:

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