Using the runtime automation server – PB Docs 70
Using the runtime automation server Chapter 17, “Using OLE in an Application “, explains how PowerBuilder provides containers for OLE objects and custom controls and how you can use automation to program those objects. The functionality for those objects is provided by server applications. The programming tells a server application how to manipulate its data….
OLE controls in a window – PB Docs 70
OLE controls in a window You can add OLE objects and ActiveX controls to a window or user object. To do so, you use one of the PowerBuilder OLE controls, which acts as an OLE container. This section explains how you select the control you want by choosing whether it holds an OLE object (also…
About drag and drop – PB Docs 70
About drag and drop Drag and drop allows users to initiate activities by dragging a control and dropping it on another control. It provides a simple way to make applications graphical and easy to use. For example, in a manufacturing application you might allow the user to pick parts from a bin for an assembly…
Performing some final housekeeping – PB Docs 70
Performing some final housekeeping When your application has finished processing pipelines, you need to make sure it takes care of a few cleanup chores. These chores basically involve releasing the resources you obtained at the beginning to support pipeline execution. Garbage collection You should avoid using the DESTROY statement to clean up resources unless you…
About Transaction objects – PB Docs 70
About Transaction objects In a PowerBuilder database connection, a Transaction object is a special nonvisual object that functions as the communications area between PowerScript and the database. The Transaction object specifies the parameters that PowerBuilder uses to connect to a database. You must establish the Transaction object before you can access the database in your…
Building an MDI frame window – PB Docs 70
Building an MDI frame window When you create a new window in PowerBuilder, its default window type is Main. Select mdi! or mdihelp! on the General property page to change the window to an MDI frame window. Using menus When you change the window type to MDI, you must associate a menu with the frame….
Sharing external function libraries – PB Docs 70
Sharing external function libraries If you have written external functions whose source code can be compiled on all target platforms, you can simplify the external function declarations in PowerBuilder if you give the function library a name that works on all platforms. The lowest common denominator for names is the DOS 8+3 format. On Windows…
Deploying the server application – PB Docs 70
Deploying the server application You must use dynamic libraries When you are ready to create an executable version of your server application, you need to create a dynamic library for your PBL . Because the remote objects you define are not referenced by the server, but only by the client, they will not be included…
Managing information in initialization files – PB Docs 70
Managing information in initialization files Functions for accessing initialization files PowerBuilder provides several functions you can use to manage application settings in initialization files: Function Description ProfileInt Obtains the integer value of a setting in a profile file. ProfileString Obtains the string value of a setting in a profile file. SetProfileString Writes a value in…
About Java data type mappings – PB Docs 70
About Java data type mappings The JavaBeans proxy generator maps basic PowerBuilder data types to Java data types or to class types that wrap the PowerScript type: PowerScript data type Java data type Boolean java.lang.Boolean Char or character java.lang.Character Int or integer java.lang.Short Uint, Unsignedint, or UnsignedInteger java.lang.Integer Long java.lang.Integer Ulong or UnsignedLong java.lang.Long Real…