Powerbuilder Documentation 12.6

Powerbuilder Documentation 12.6

Using your functions – PB Docs 126

Using your functions You use user-defined functions the same way you use built-in functions. You can call them in event scripts or in other user-defined functions. For complete information about calling functions, see Application Techniques. Pasting user-defined functions When you build a script in the Script view, you can type the call to the user–defined…

Copying structures – PB Docs 126

Copying structures To copy the values of a structure to another structure of the same type: Assign the structure to be copied to the other structure using this syntax:

PowerBuilder copies all the variable values from struct2 to struct1. Example These statements copy the values in lstr_emp2 to lstr_emp1:

Document get from Powerbuilder…

About user events – PB Docs 126

About user events Windows, user objects, controls, menus, and Application objects each have a predefined set of events. In most cases, the predefined events are all you need, but there are times when you want to declare your own user event. You can use predefined event IDs to trigger a user event, or you can…

Class user objects – PB Docs 126

Class user objects A class user object lets you reuse a set of business rules or other processing that acts as a unit but has no visual component. For example, you might define a class that calculates sales commissions or performs statistical analysis. Whenever you need to do this type of processing, you instantiate the…

Inserting menu items in a descendent menu – PB Docs 126

Inserting menu items in a descendent menu Modifying the ShiftToRight property When defining a descendent menu, you might want to insert menu items in the middle of the menu bar or in the middle of a drop-down or cascading menu. To do this, you set the ShiftToRight property in a menu item’s Properties view on…

Defining user events – PB Docs 126

Defining user events In PowerBuilder, you can define both mapped and unmapped user events for windows, user objects, controls, menus, and the Application object. When you add a new event, a Prototype window displays above the script area in the Script view. Most of the fields in the Prototype window are the same as when…

Using the file editor – PB Docs 126

Using the file editor One of the tools on the PowerBar and Tools menu is a text editor that is always available. Using the editor, you can view and modify text files (such as initialization files and tab-separated files with data) without leaving PowerBuilder. Among the features the file editor provides are find and replace,…

Manipulating data – PB Docs 126

Manipulating data As you work on the database, you often want to look at existing data or create some data for testing purposes. You might also want to test display formats, validation rules, and edit styles on real data. PowerBuilder provides data manipulation for such purposes. With data manipulation, you can: Retrieve and manipulate database…

About system tables – PB Docs 126

About system tables Two kinds of system tables exist in the database: System tables provided by your DBMS (for more information, see your DBMS documentation) PowerBuilder extended attribute system tables About PowerBuilder system tables PowerBuilder stores extended attribute information you provide when you create or modify a table (such as the text to use for…