About MAPI – PB Docs 70
About MAPI PowerBuilder supports MAPI (messaging application program interface), so you can enable your applications to send and receive messages using any MAPI-compliant electronic mail system. For example, your PowerBuilder applications can: Send mail with the results of an analysis performed in the application Send mail when a particular action is taken during the application…
Advanced ways to manipulate OLE objects – PB Docs 70
Advanced ways to manipulate OLE objects In addition to OLE objects in controls and objects for automation, PowerBuilder provides an interface to the underpinnings of OLE data storage. OLE data is stored in objects called streams, which live in objects called storages. Streams and storages are analogous to the files and directories of a file…
Using point and click – PB Docs 70
Using point and click Users can click graphs during execution. PowerScript provides a function called ObjectAtPointer that stores information about what was clicked. You can use this function in a number of ways in Clicked scripts. For example, you can provide the user with the ability to point and click on a data value in…
Terminology review – PB Docs 70
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…
Accessing data properties – PB Docs 70
Accessing data properties To access properties related to a graph’s data during execution, you use PowerScript graph functions. The graph functions related to data fall into several categories: Functions that provide information about a graph’s data Functions that save data from a graph Functions that change the color, fill patterns, and other visual properties of…
Using Tab controls in scripts – PB Docs 70
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 pagesin scripts…
About preferences and default settings – PB Docs 70
About preferences and default settings Many PowerBuilder applications store user preferences and default settings across sessions. For example, many applications keep track of settings that control the appearance and behavior of the application, or store default parameters for connecting to the database. PowerBuilder applications can manage this kind of information in initialization files or in…
Printing a job – PB Docs 70
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 will 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…
Garbage collection – PB Docs 70
Garbage collection The PowerBuilder garbage collection mechanism checks memory automatically for unreferenced and orphaned objects and removes any it finds, thus taking care of most memory leaks. You can use garbage collection to destroy objects instead of explicitly destroying them using the DESTROY statement. This lets you avoid execution-time errors that occur when you destroy…
About the Component Object Model – PB Docs 70
About the Component Object Model The Microsoft Component Object Model (COM) defines a standard way for software components to supply services to each other. Any PowerBuilder custom class user object can be used as a COM object by providing it with an execution environment, a registry entry, and optionally a type library. Clients built with…