home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a012 / 1.ddi / CHAP15.EXE / CHP1519.PRG < prev    next >
Encoding:
Text File  |  1991-04-30  |  774 b   |  31 lines

  1. /*
  2.    Listing 15.19. Example of CheckAbort().
  3.    Author: Craig Yellick
  4.    Excerpted from "Clipper 5: A Developer's Guide"
  5.    Copyright (c) 1991 M&T Books
  6.                       501 Galveston Drive
  7.                       Redwood City, CA 94063-4728
  8.                       (415) 366-3600
  9. */
  10.  
  11. function Main()
  12. /*
  13.    Code fragment showing how CheckAbort() is
  14.    implemented in a reporting loop.
  15. */
  16.   local finished_ok := .t.
  17.   do while .not. vendor->(eof())
  18.     if CheckAbort(12,8)
  19.       finished_ok := .f.
  20.       exit
  21.     endif
  22.     NextRow(1, 2, Vendor->Name)
  23.     SameRow(2, Vendor->Address)
  24.     SameRow(2, Vendor->YTD, "$9,999.99")
  25.     SameRow(6, if(Vendor->Contract, "Yes", "No"))
  26.     skip alias vendor
  27.   enddo
  28. return nil
  29.  
  30. // end of file CHP1519.PRG
  31.