PBBoundedObjectArrayCreator class – PB Docs 125
PBBoundedObjectArrayCreator class Description The PBBoundedObjectArrayCreator class is used to create an object array. Methods PBBoundedObjectArrayCreator has two methods: GetArray SetAt Document get from Powerbuilder help Thank you for watching.
GetCount – PB Docs 125
IPB_Arguments interface: GetCount method Description Obtains the number of arguments in an instance of PBCallInfo. Syntax
|
1 |
GetCount ( ) |
Return Values pbint. Examples This example uses GetCount in a FOR loop used to process different argument types:
|
1 |
int i;<br>for (i=0; i < ci-> pArgs -> <span>GetCount</span>();i++)<br>{<br>   pbuint ArgsType;<br> <br>   if( ci -> pArgs -> GetAt(i) -> IsArray())<br>   <br>      pArguments[i].array_val = <br>         ci -> pArgs -> GetAt(i) -> GetArray();<br>      continue;<br>   }<br> <br>   if( ci -> pArgs -> GetAt(i) -> IsObject()) <br>   {<br>      if (ci -> pArgs -> GetAt(i) -> IsNull()) <br>         pArguments[i].obj_val=0;<br>      else<br>         pArguments[i].obj_val = <br>            ci -> pArgs -> GetAt(i) -> GetObject();<br>      continue;<br>   }<br>   ... |
See Also GetAt Document get from Powerbuilder help Thank you for watching.
IPB_ResultSetAccessor interface – PB Docs 125
IPB_ResultSetAccessor interface Description The IPB_ResultSetAccessor interface is used to access result sets in DataWindow and DataStore objects. Methods The IPB_ResultSetAccessor interface has six methods: AddRef GetColumnCount GetColumnMetaData GetItemData GetRowCount Release Document get from Powerbuilder help Thank you for watching.
AddRef – PB Docs 125
IPB_ResultSetAccessor interface: AddRef method Description When you call the CreateResultSet function of interface IPB_Session, you need to pass an argument of type IPB_ResultSetAccessor. The AddRef function is called on that argument and the Release function is called when the pbobject is destroyed. Syntax
|
1 |
AddRef ( ) |
Return Values None. See Also CreateResultSet GetColumnCount Document get from Powerbuilder…
GetColumnCount – PB Docs 125
IPB_ResultSetAccessor interface: GetColumnCount method Description Obtains the number of columns. Syntax
|
1 |
GetColumnCount ( ) |
Return Values Unsigned long. Examples This statement stores the number of columns in *numCols:
|
1 |
*numCols = d_rsAccessor->GetColumnCount(); |
See Also CreateResultSet GetRowCount Document get from Powerbuilder help Thank you for watching.
GetItemData – PB Docs 125
IPB_ResultSetAccessor interface: GetItemData method Description Accesses the data in a cell. The first row is 1 and the first column is 1. Syntax
|
1 |
GetItemData(unsigned long <span>row</span>, unsigned long <span>col</span>, IPB_RSItemData* <span>data</span>) |
Argument Description row The row number of the cell col The column number of the cell data A pointer to an IPB_RSItemData structure Return Values Boolean. Examples This example stores the…
GetColumnMetaData – PB Docs 125
IPB_ResultSetAccessor interface: GetColumnMetaData method Description Obtains a column’s metadata. The column number of the first column is 1. Memory must be allocated for columnName before this function call. The pointer values can be null. Syntax
|
1 |
GetColumnMetaData (unsigned long <span>columnNum</span>, LPTSTR <span>columnName</span>, pbvalue_type* <span>type</span>, unsigned long* <span>width</span> ) |
Argument Description columnNum The number of the column for which you want to obtain metadata columnName The name of…
IPB_RSItemData interface – PB Docs 125
IPB_RSItemData interface Description The IPB_RSItemData interface is used as an argument to the GetItemData function of IPB_ResultSetAccessor. Methods The IPB_RSItemData interface has two methods: SetData and SetNull. Document get from Powerbuilder help Thank you for watching.
GetRowCount – PB Docs 125
IPB_ResultSetAccessor interface: GetRowCount method Description Obtains the number of rows. Syntax
|
1 |
GetRowCount ( ) |
Return Values Unsigned long. Examples This statement stores the number of rows in *numRows:
|
1 |
*numRows = d_rsAccessor->GetRowCount(); |
See Also CreateResultSet GetColumnCount GetColumnMetaData GetItemData Document get from Powerbuilder help Thank you for watching.
Header file contents – PB Docs 125
Header file contents PBNI classes and interfaces are defined in a set of header files. pbni.h The classes, structures, and methods defined in the header file pbni.h allow PowerBuilder extension modules to interact with PowerBuilder. This file also includes the pbarray.h, pbfield.h, and pbnimd.h header files. pbarray.h, pbfield.h, pbtraits.h, and pbnimd.h pbarray.h contains helper classes…