GetCount
Description
Obtains the number of arguments in an instance of
PBCallInfo.
Syntax
|
1 |
GetCount ( ) |
Return value
pbint.
Examples
This example uses GetCount in a FOR loop used to process different
argument types:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
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
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest