GetArrayInfo
Description
Obtains information about an array.
Syntax
|
1 |
GetArrayInfo(pbarray array) |
|
Argument |
Description |
|---|---|
|
array |
A valid array handle |
Return value
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 2 3 4 5 6 7 8 9 10 11 |
if ( !(ci->pArgs->GetAt(0)->IsNull()) ) { array = ci->pArgs->GetAt(0)->GetArray(); pArrayInfo = session->GetArrayInfo (array); pArrayItemCount = session->GetArrayLength(array); } else { // NULL array pArrayItemCount = 0; } |
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