IPB_Session interface:
GetArrayLength method
Description
Obtains the length of an array.
Syntax
1 |
GetArrayLength(pbarray <span>array</span>) |
Argument |
Description |
---|---|
array |
A valid array handle |
Return Values
pblong.
Examples
This IF–ELSE statement
populates a PBArrayInfo structure. If the array in the first value
of a PBCallInfo structure is not null, it sets
the value of the pArrayItemCount variable to
the length of the array:
1 |
if ( !(ci->pArgs->GetAt(0)->IsNull()) )<br>{<br>   array = ci->pArgs->GetAt(0)->GetArray();<br>   pArrayInfo = session->GetArrayInfo (array);<br>   pArrayItemCount = session-><span>GetArrayLength</span>(array);<br>}<br>else<br>{<br>   // NULL array<br>pArrayItemCount = 0;<br>} |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest