home *** CD-ROM | disk | FTP | other *** search
- DATABASE leads
- GLOBALS "globals.4gl"
-
- FUNCTION rd_label()
- {
- The rd_label report driver retrieves prospects in zip code order
- from the prospect table. It then passes the information to the
- r_label report.
- }
- DECLARE c_label CURSOR FOR
- SELECT *
- INTO pr_prospect.*
- FROM prospect
- ORDER BY zip
- DISPLAY "Running report, output going to label.out" AT 15,1
- START REPORT r_label
- FOREACH c_label
- OUTPUT TO REPORT r_label(pr_prospect.*)
- END FOREACH
- FINISH REPORT r_label
- DISPLAY "Report finished, output in label.out", "" AT 15,1
- SLEEP 3
- DISPLAY "" AT 15,1
- END FUNCTION
-