Getting Started – PB Docs 2017
Getting Started Appeon PowerBuilder® 2017 R3 FOR WINDOWS DOCUMENT ID: DC37772-01-1700-01 LAST REVISED: July 13, 2018 Copyright © 2018 by Appeon Limited. All rights reserved. This publication pertains to Appeon software and to any subsequent release until otherwise indicated in new editions or technical notes. Information in this document is subject to change without notice. The software…
Add menu scripts to trigger user events – PB Docs 2017
Add menu scripts to trigger user events Where you are    Modify the frame menu    Create a new sheet menu >   Add menu scripts to trigger user events    Attach the new menu and run the application Now you add scripts to trigger user events from the sheet window menu bar. You added these user events in Modifying…
View the DataWindow in the DataWindow painter – PB Docs 2017
View the DataWindow in the DataWindow painter Now you view the DataWindow in the DataWindow painter using the Design and Preview views. Click the Return button in the PainterBar or Select File>Return To DataWindow Painter from the menu bar. The DataWindow wizard asks you to select the borders and colors for the new DataWindow object….
FreeCallInfo – PB Docs 2017
FreeCallInfo Description Frees memory allocated by InitCallInfo. Syntax
|
1 |
FreeCallInfo(PBCallInfo *ci) |
Argument Description ci A pointer to the preallocated PBCallInfo structure Return value None. Examples FreeCallInfo should be called when the PBCallInfo structure is no longer needed:
|
1 2 3 4 5 6 |
Session->InvokeObjectFunction(myobj, mid, ci); ret_val = ci.returnValue-> GetInt(); Session-> FreeCallInfo(ci); delete ci; return ret_val; |
Usage This method frees memory allocated by InitCallInfo but does not free the structure ci itself. See also InitCallInfo…
About calling PowerScript from C++ applications – PB Docs 2017
About calling PowerScript from C++ applications If you have a PowerBuilder custom class user object that performs intensive programming that would be useful to an application that you need to write in C++, you can access the object directly from the C++ application using PBNI. You do not need to make the user object into…
GetColumnCount – PB Docs 2017
GetColumnCount Description Obtains the number of columns. Syntax
|
1 |
GetColumnCount ( ) |
Return value 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.
GetAt – PB Docs 2017
GetAt Description Returns a pointer to the IPB_Value interface representing an argument whose order in the list of arguments is indicated by a specified index. Syntax
|
1 |
GetAt ( pbint index ) |
Argument Description index A valid index into the PBCallInfo structure Return value IPB_Value* Examples In the following code fragment, GetAt obtains the first value in the PBCallInfo structure. The…
NewProxyObject – PB Docs 2017
NewProxyObject Description Creates a proxy for a remote object. The proxy is used to extend the network protocol in PowerBuilder. Syntax
|
1 |
NewProxyObject(pbclass cls) |
Argument Description cls The type of object or structure instance to be created Return value pbproxyobject. Examples This example creates a new proxy object, creates a marshaler, and associates the marshaler with the…
AcquireArrayItemValue – PB Docs 2017
AcquireArrayItemValue Description Clones the data in the PBCallInfo structure in an array item and resets the IPB_Value pointer. Syntax
|
1 |
AcquireArrayItemValue( pbarray array, pblong dim[ ]) |
Argument Description array A valid pbarray structure. dim A pblong array to hold the indexes of all dimensions of the array. The size of the array must equal the dimensions of array. Return value IPB_Value*….
Building and using the PBX – PB Docs 2017
Building and using the PBX When you have finished coding the project, build the project from the Build menu to create a DLL with the extension .pbx. By default, the extension is created in the Debug directory. Then, you can import the PBX into a PBL in your PowerBuilder target and use it as described…