home *** CD-ROM | disk | FTP | other *** search
- DATABASE leads
- GLOBALS "globals.4gl"
-
- FUNCTION rd_sperson()
- {
- The rd_sperson report driver retrieves the names and employee
- numbers of salespeople from the sperson table. It then passes
- the data to the r_sperson report.
- }
- DECLARE c_sperson CURSOR FOR
- SELECT empnum,
- lname,
- fname
- INTO pr_sperson.empnum,
- pr_sperson.lname,
- pr_sperson.fname
- FROM sperson
- ORDER BY lname,
- fname
- CLEAR SCREEN
- START REPORT r_sperson
- FOREACH c_sperson
- OUTPUT TO REPORT r_sperson(pr_sperson.empnum, pr_sperson.lname,
- pr_sperson.fname)
- END FOREACH
- FINISH REPORT r_sperson
- END FUNCTION
-