GetArrayLength
Description
Obtains the length of an array.
Syntax
|
1 |
GetArrayLength(pbarray array) |
|
Argument |
Description |
|---|---|
|
array |
A valid array handle |
Return value
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 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; } |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest