SelectionChanging – PB Docs 150
SelectionChanging event The SelectionChanging event has different arguments for different objects: Object See Tab control Syntax 1 TreeView control Syntax 2 Syntax 1 For Tab controls Description Occurs when another tab is about to be selected. Event ID Event ID Objects pbm_tcnselchanging Tab Parameters Argument Description oldindex Integer by value (the index of the currently selected…
Interacting with the COM component – PB Docs 150
Interacting with the COM component Invoking component methods Once a connection to a COM component has been established, the client application can begin using the component methods. Use the REF keyword for output parameters You must use the REF keyword when you call a method on a COM object that has an output parameter. For…
Syntax 2 For editing a label in a TreeView – PB Docs 150
Syntax 2 For editing a label in a TreeView Description Puts a label in a TreeView into edit mode. Controls TreeView controls Syntax
|
1 |
<span>treeviewname</span><span>.EditLabel</span> ( <span>itemhandle</span> ) |
Argument Description treeviewname The TreeView control in which you want to enable label editing itemhandle The handle of the item to be edited Return Values Integer. Returns 1 if it succeeds and…
Controlling transactions from a client – PB Docs 150
Controlling transactions from a client PowerBuilder clients can exercise explicit control of a transaction on a COM+ server by using a variable of type OleTxnObject instead of OLEObject to connect to the COM object. Requires COM+ installation The ConnectToNewObject call on an OleTxnObject fails if COM+ is not installed on the client computer. The OleTxnObject…
Syntax 2 For extracting DateTime values from blobs – PB Docs 150
Syntax 2 For extracting DateTime values from blobs Description Extracts a DateTime value from a blob. Syntax
|
1 |
<span>DateTime</span> ( <span>blob</span> ) |
Argument Description blob A blob in which the first value is a DateTime value. The rest of the contents of the blob is ignored. Blob can also be an Any variable containing a blob. Return Values DateTime. Returns…
The Message object – PB Docs 150
The Message object The Message object is a predefined PowerBuilder global object (like the default Transaction object SQLCA and the Error object) that is used in scripts to process Microsoft Windows events that are not PowerBuilder-defined events. When a Microsoft Windows event occurs that is not a PowerBuilder-defined event, PowerBuilder populates the Message object with…
Declaring variables – PB Docs 150
Declaring variables General information Before you use a variable in a PowerBuilder script, you must declare it (give it a datatype and a name). A variable can be a standard datatype, a structure, or an object. Object datatypes can be system objects as displayed in the Browser or they can be objects you have defined…
Setting up the OLE control – PB Docs 150
Setting up the OLE control When you create an OLE control and insert an object, PowerBuilder activates the server application to allow you to modify the object. After you deactivate it (by clicking outside the object’s borders in the Layout view), you can use the control’s property sheets to set up the control. To specify…
Declaring constants – PB Docs 150
Declaring constants Description Any PowerScript variable declaration of a standard datatype that can be assigned an initial value can be a constant instead of a variable. To make it a constant, include the keyword CONSTANT in the declaration and assign it an initial value. Syntax
|
1 |
CONSTANT { <span>access </span>} <span>datatype constname</span> = <span>value</span> |
The following table shows the parameters used to declare…
Server support – PB Docs 150
Server support PowerBuilder developers can build clients that invoke the services of Sybase EAServer, COM+, and other application servers, and build components (or objects) that execute business logic inside each of these servers. PowerBuilder also provides support for building clients for Enterprise JavaBeans components (EJBs) running on any J2EE-compliant server. EAServer PowerBuilder and EAServer are…