Getting Started


Creating a main function

Main functions provide the basic structure of a VisualAge Generator program. You can define up to 254 main functions. When the program runs, control usually transfers from one main function to the next.

To insert a main function into your the structure diagram of your sample program:

  1. In the Program Editor, select Define>Main Functions.
  2. In the Part name field, type main-logic. Select OK.

Figure 47. Insert Main Function window

Main function

The name of the main function is displayed in the structure diagram in the Program Editor. The question mark beside it indicates that the function has not yet been defined.


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