Previous Topic: Introduction to the Print Object FunctionNext Topic: Defining the Print Object Function


Objectives

At this point, you have created a function to print a list of all the horses stored in the database. A more useful report might also list the races for which each horse has been entered. To produce such a report, you need to combine records from the RACE ENTRY file with the existing Print Horses function. You can achieve this using a Print Object function. Use the following steps to do this.

  1. Specify a Print Object function based on the RACE ENTRY file.
  2. Define a Query access path to be used with the RACE ENTRY file.
  3. Combine the Print Object function with the Print File function and specify the parameters to be passed between them.
  4. Generate and compile the new Print Horses function.
  5. Test the program.