Getting Started with TRANSACT (32247-90007)

72 Chapter3
Using VPLUS and IMAGE
Setting Up a Menu-Driven System
Setting Up a Menu-Driven System
Now all we need to do is tie the pieces together with a menu and we have a complete
system for adding, updating, and reporting data. A mainmenu form does the trick. The
format of the form is:
Figure 3-19. VPLUS Form for Main Menu
Now we can integrate the individual programs we wrote earlier into a program driven by
the main menu. Depending on the choice entered on the mainmenu, the program will
execute the code to add, update, or report a customer.
The program might look like the one below.
mainmenu Customer module
f1 = add customer
f2 = update customer
f3 = report customer
F8 = exit