IPB_Session interface:
GetArrayInfo method
Description
Obtains information about an array.
Syntax
|
1 |
GetArrayInfo(pbarray <span>array</span>) |
|
Argument |
Description |
|---|---|
|
array |
A valid array handle |
Return Values
PBArrayInfo*.
Examples
This IF–ELSE statement
populates a PBArrayInfo structure if the array in the first value
of a PBCallInfo structure is not null:
|
1 |
if ( !(ci->pArgs->GetAt(0)->IsNull()) )<br>{<br>   array = ci->pArgs->GetAt(0)->GetArray();<br>   pArrayInfo = session-><span>GetArrayInfo</span> (array);<br>   pArrayItemCount = session->GetArrayLength(array);<br>}<br>else<br>{<br>   // NULL array<br>pArrayItemCount = 0;<br>} |
Usage
If the array is an unbounded array, the bounds information
in PBArrayInfo is undetermined. The returned PBArrayInfo must
be freed later by ReleaseArrayInfo.
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest