IPB_Arguments interface:
GetCount method
Description
Obtains the number of arguments in an instance of PBCallInfo.
Syntax
|
1 |
GetCount ( ) |
Return Values
pbint.
Examples
This example uses GetCount in
a FOR loop used to process different argument types:
|
1 |
int i;<br>for (i=0; i < ci-> pArgs -> <span>GetCount</span>();i++)<br>{<br>   pbuint ArgsType;<br> <br>   if( ci -> pArgs -> GetAt(i) -> IsArray())<br>   <br>      pArguments[i].array_val = <br>         ci -> pArgs -> GetAt(i) -> GetArray();<br>      continue;<br>   }<br> <br>   if( ci -> pArgs -> GetAt(i) -> IsObject()) <br>   {<br>      if (ci -> pArgs -> GetAt(i) -> IsNull()) <br>         pArguments[i].obj_val=0;<br>      else<br>         pArguments[i].obj_val = <br>            ci -> pArgs -> GetAt(i) -> GetObject();<br>      continue;<br>   }<br>   ... |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest