3.3 Building and Running the Application

Now you are ready to build and run the application. You must build the application first before you can run it.

Follow these steps:

  1. Select the Project menu bar on the VisualAge RPG window. Select Build > Windows NT/95/98 from the submenu.
  2. A message window appears to ask if a save should be done prior to the build. Click Save.
  3. Next you see the Build (Window NT/95/98) - VisualAge RPG window while the build is being performed.

    You are informed whether the application was built successfully or if there were any problems.

    Click OK.

  4. If you have compile time errors, the Error List window displays. The Error List window shows one line for each error found during compile. The error number is followed by a character indicating the severity of the error.

Running the Application

If the build was successful, you are now ready to run the application.

Follow these steps:

  1. Select Project from the menu bar on the VisualAge RPG window. Select Run, then Windows NT/95/98. This runs your VisualAge RPG application.
  2. Click OK and verify that your logic is correct. Clicking on the push button should change the color of the entry field.
  3. Click EXIT to end your application.

Click on to indicate that you've done all the steps.

This completes Exercise 3. You have just added functionality to the push buttons on the Customer Inquiry window so that when a push button is pressed an action is performed.

Now you are ready to add code to access AS/400 files and data and to create a new window to display the AS/400 data.

But before you do, we recommend you do the Quiz.