NewBoundedObjectArray
Description
Creates a bounded PowerBuilder object or structure array.
Syntax
|
1 |
NewBoundedObjectArray(pbclass cls, pbuint dimension, PBArrayInfo::ArrayBound* bounds) |
|
Argument |
Description |
|---|---|
|
cls |
A valid class handle of the type of PowerBuilder |
|
dimension |
A number greater than one that indicates the |
|
bounds |
An array containing the upper and lower boundaries |
Return value
pbarray or null on failure.
Examples
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
int size; pbarray pbin_a; PBArrayInfo* ai; PBXRESULT ret; pbclass cls; pbgroup group; size = sizeof(PBArrayInfo) + sizeof(PBArrayInfo::ArrayBound); ai = (PBArrayInfo*)malloc(size); ai-> bounds[0].upperBound=2; ai-> bounds[0].lowerBound=1; ai-> bounds[1].upperBound=2; ai-> bounds[1].lowerBound=1; ai-> numDimensions=2; // Create new array pbin_a group = session-> FindGroup("w_main", pbgroup_window); if (group==NULL) return; cls = session->FindClass(group, "commandbutton"); if( cls==NULL) return; pbin_a = session->NewBoundedObjectArray(cls, ai-> numDimensions, ai-> bounds); |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest