Powerbuilder Documentation 8.0

Powerbuilder Documentation 8.0

About the sample applications – PB Docs 80

About the sample applications PowerBuilder provides sample applications with source code so you can learn and reuse the techniques used in the samples. Code examples One of the sample applications, PowerBuilder Code Examples, contains many examples you can use to learn a range of coding techniques. The examples are specifically designed to show you how…

Managing information in the Windows registry – PB Docs 80

Managing information in the Windows registry Functions for accessing the Registry PowerBuilder provides several functions you can use to manage application settings in the Windows registry: Function Description RegistryDelete Deletes a key or a value in a key in the Windows registry. RegistryGet Gets a value from the Windows registry. RegistryKeys Obtains a list of…

Using Tab controls in scripts – PB Docs 80

Using Tab controls in scripts This section provides examples of tabs in scripts: Referring to tab pages in scripts Referring to controls on tab pages Opening, closing, and hiding tab pages Keeping track of tab pages Creating tab pages only when needed Events for the parts of the Tab control Referring to tab pages in…

Starting the pipeline – PB Docs 80

Starting the pipeline With the setup chores taken care of, you can now start the execution of your pipeline. To start pipeline execution: Code the Start function in an appropriate script. In this function, you specify: The Transaction object for the source database. The Transaction object for the destination database. The DataWindow control in which…

OLE controls and insertable objects – PB Docs 80

OLE controls and insertable objects The OLE control contains an insertable OLE object. You can change the object in the control in the painter or in a script. You specify what is allowed in the control by setting PowerBuilder properties. Setting up the OLE control When you create an OLE control and insert an object,…

Terminology review – PB Docs 80

Terminology review Classes, properties, and methods In object-oriented programming, you create reusable classes to perform application processing. These classes include properties and methods that define the class’s behavior. To perform application processing, you create instances of these classes. PowerBuilder implements these concepts as follows: Classes PowerBuilder objects (such as windows, menus, window controls, and user…

Printing a job – PB Docs 80

Printing a job PrintOpen must be the first function call in every print job. The PrintOpen function defines a new blank page in memory, specifies that all printing be done in the printer’s default font, and returns an integer. The integer is the print job number that is used to identify the job in all…

Implementing an existing interface – PB Docs 80

Implementing an existing interface You can create PowerBuilder implementations of existing interfaces using the EAServer Component Wizard on the Target or PB Object tab in the New dialog box. A typical use of this feature is to create an implementation of a standard API, such as the protocols for online banking and securities trading that…

Using PowerBuilder as an automation server – PB Docs 80

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 user objects you will access How you…

Providing support for instance pooling – PB Docs 80

Providing support for instance pooling Benefits of instance pooling EAServer components can optionally support instance pooling. Instance pooling allows EAServer clients to reuse component instances. By eliminating the resource drain caused by repeated allocation of component instances, instance pooling improves the overall performance of EAServer. Specifying pooling options in the wizards When you create an…