Getting Started


Logic

Use the logic editors to build VAGen parts that can access records, display user interfaces, manipulate data, and perform decision-making processes. VAGen logic parts are programs and functions that use the data and user interface parts you define.

Program Editor

A VAGen program contains logic, data, and elements that define the program's structure.

Using VisualAge Generator Developer, you can view and work with the hierarchical structure of a program in a graphical form called a program diagram. Figure 11 shows an example of a program diagram.

Figure 11. Program Diagram

Function Editor

From the program diagram you can get to all the related VAGen parts. Double-click on any VAGen part to open it in the appropriate editor. You can also add various new parts to the Program Editor using one of many context menus, or create new parts by selecting File>New to display the New VAGen Parts window.

For hands-on practice defining a program, complete the steps outlined in Part 2, "VisualAge Generator Tutorial".

Function Editor

Logic is defined in groups of statements called functions. A VAGen program consists of functions and their associated data and user interface parts. Each function contains statements that handle the data for a specific task.

Processing logic in VisualAge Generator does the following:

Figure 12. Function Editor

Function Editor

You can also customize SQL statements and add them to some functions using the SQL Statement Editor. Depending on the SQL statement you want to edit, a window like the one shown in Figure 13 will be displayed for you. For more information on which clauses you can modify in each SQL statement, refer to "SQL Statement Editor" in the VisualAge Generator Developer help facility index.

Figure 13. SQL Statement Editor

SQL Statement Editor

Templates are provided for all VisualAge Generator statements to help you create your statements as well as to help you avoid introducing syntax errors. Figure 14 shows an IF statement template.

Figure 14. IF Statement Template

IF Statement

The Paste Part Name window provides you with a list of VAGen parts that are loaded into your workspace/image. Use this window to add the names of parts you want to use in functions. Figure 15 shows a list of functions.

Figure 15. Paste Part Name window

Figure vjppnwin not displayed.

For hands-on practice defining functions, complete the steps outlined in Part 2, "VisualAge Generator Tutorial".


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]