GetCount

PowerBuilder Native Interface

IPB_Arguments interface:

GetCount method

Description

Obtains the number of arguments in an instance of PBCallInfo.

Syntax

GetCount ( )

Return Values

pbint.

Examples

This example uses GetCount in a FOR loop used to process different argument types:

int i;
for (i=0; i < ci-> pArgs -> GetCount();i++)
{
   pbuint ArgsType;

   if( ci -> pArgs -> GetAt(i) -> IsArray())
   
      pArguments[i].array_val =
         ci -> pArgs -> GetAt(i) -> GetArray();
      continue;
   }

   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