Using external functions – PB Docs 70
Using external functions External functions are functions that are written in languages other than PowerScript and stored in dynamic libraries. On Windows On Windows, external functions are stored in dynamic link libraries (DLLs). On UNIX On UNIX, external functions are stored in shared (archive) libraries with the extension .a, .so, or .sl depending on the…
Using PowerBuilder as an automation server – PB Docs 70
Using PowerBuilder as an automation server Using PowerBuilder.Application as an automation server involves these steps: Define the objects you will access. Build the runtime libraries for those objects. Write code in the client that connects to PowerBuilder, creates the objects, and accesses their methods and properties. Creating the userobjects you will access How you define…
Dot notation – PB Docs 70
Dot notation Dot notation lets you qualify the item you are referring to–instance variable, property, event, or function–with the object that owns it. Dot notation is for objects. You don’t use dot notation for global variables and functions, because they exist independently of any object. You don’t use dot notation for shared variables either, because…
Using dropdown listboxes – PB Docs 70
Using dropdown listboxes Dropdown listboxes are another way to present simple lists of information to the user. You can present your lists with just text (in a DropDownListBox) or with text and pictures (in a DropDownPictureListBox). You add DropDownListBox and DropDownPictureListBox controls to windows in the same way you add other controls: select DropDownListBox or…
Creating an executable version of your application – PB Docs 70
Creating an executable version of your application The next few sections tell you more about the packaging process and provide information to help you make choices about the resulting application. You’ll read about: Compiler basics What can go in the package How to choose a packaging model How to implement your packaging model How to…
Using listboxes – PB Docs 70
Using listboxes You can use listboxes to present information to the user in simple lists with scrollbars. You can present this information with text and pictures (in a PictureListBox) or with text alone (using a ListBox). Depending on how you design your application, the user can select one or more list items to perform an…
Starting the deployed application – PB Docs 70
Starting the deployed application Your users can run your application the same way they run other Windows applications. For example, they can double-click the executable file in Explorer or create an application shortcut on the desktop and double-click the shortcut. If users create a shortcut, the Target textbox on the Shortcut properties page should specify…
Stopping a print job – PB Docs 70
Stopping a print job There are two ways to stop a print job. The normal way is to close the job by calling the PrintClose function at the end of the print job. The other way is to cancel the job by calling PrintCancel. Using PrintClose PrintClose sends the current page to the printer or…
Managing program variable space – PB Docs 70
Managing program variable space For each client connection to a server, PowerBuilder maintains a separate client session. Each client session on the server has its own program variable space. Scope rules The scope rules for variable and object data in a distributed application are essentially the same as in a nondistributed application. Therefore, a global…
Accessing a database from a COM or MTS component – PB Docs 70
Accessing a database from a COM or MTS component To take advantage of MTS support for transaction management, you need to use the Open Database Connectivity (ODBC) database interface to connect to a database. COM components developed in PowerBuilder can use DataStores to interact with the database. DataStores are nonvisual DataWindow controls that act just…