Powerbuilder Documentation 15.0

Powerbuilder Documentation 15.0

Working in the current library – PB Docs 150

Working in the current library In PowerBuilder, the current library is the library that contains the object most recently opened or edited. That library becomes the default for Open and Inherit. If you click the Open or Inherit button in the PowerBar, the current library is the one selected in the Libraries list. You can…

The System Tree – PB Docs 150

The System Tree The System Tree provides an active resource of programming information you use while developing targets. It lets you not only get information, but also drag objects into painter views (such as the Script view or Layout view) for immediate use. The System Tree displays by default when you start PowerBuilder for the…

Working with Windows – PB Docs 150

Working with Windows About this chapter This chapter describes how to build windows in the Window painter. Contents Topic About windows Types of windows About the Window painter Building a new window Viewing your work Writing scripts in windows Running a window Using inheritance to build a window Document get from Powerbuilder help Thank you…

Changing the name – PB Docs 150

Changing the name You should change the default suffix to a suffix that is meaningful in your application. For example, if you have command buttons that update and retrieve database information, you might call them cb_update and cb_retrieve. If you have many controls on a window, using intuitive names makes it easier for you and…

Painter features – PB Docs 150

Painter features Painters that edit objects Most painters that edit PowerBuilder objects have these features: Feature Notes Painter window with views See “Views in painters that edit objects”. Unlimited undo/redo Undo and redo apply to all changes. Drag-and-drop operations Most drag-and-drop operations change context or copy objects. To-Do List support When you are working in…

About user-defined functions – PB Docs 150

About user-defined functions The PowerScript language has many built-in functions, but you may find that you need to code the same procedure over and over again. For example, you may need to perform a certain calculation in several places in an application or in different applications. In such a situation, create a user-defined function to…

Using inheritance to build a window – PB Docs 150

Using inheritance to build a window When you build a window that inherits its definition—its style, events, functions, structures, variables, controls, and scripts—from an existing window, you save coding time. All you have to do is modify the inherited definition to meet the requirements of the current situation. This section provides an overview of using…

Removing a target from a workspace – PB Docs 150

Removing a target from a workspace When you remove a target from the workspace, the .pbt file is not deleted. To remove a target from a workspace: Right-click on the target displayed in the System Tree and select Remove Target from the pop-up menu. Document get from Powerbuilder help Thank you for watching.

Setting toolbar properties in the Application painter – PB Docs 150

Setting toolbar properties in the Application painter You can specify global properties for all toolbars in your application on the Toolbar property page in the Application painter or by setting properties of the Application object in a script. Typically you set these in the application’s Open event, but you can set them anywhere. Table 14-6:…

Logging your work – PB Docs 150

Logging your work As you work with your database, you generate SQL statements. As you define a new table, for example, PowerBuilder builds a SQL CREATE TABLE statement internally. When you save the table, PowerBuilder sends the SQL statement to the DBMS to create the table. Similarly, when you add an index, PowerBuilder builds a…