home *** CD-ROM | disk | FTP | other *** search
- /*
- Listing 15.19. Example of CheckAbort().
- Author: Craig Yellick
- Excerpted from "Clipper 5: A Developer's Guide"
- Copyright (c) 1991 M&T Books
- 501 Galveston Drive
- Redwood City, CA 94063-4728
- (415) 366-3600
- */
-
- function Main()
- /*
- Code fragment showing how CheckAbort() is
- implemented in a reporting loop.
- */
- local finished_ok := .t.
- do while .not. vendor->(eof())
- if CheckAbort(12,8)
- finished_ok := .f.
- exit
- endif
- NextRow(1, 2, Vendor->Name)
- SameRow(2, Vendor->Address)
- SameRow(2, Vendor->YTD, "$9,999.99")
- SameRow(6, if(Vendor->Contract, "Yes", "No"))
- skip alias vendor
- enddo
- return nil
-
- // end of file CHP1519.PRG
-