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

  1. /*
  2.    Listing 16.3  Setting Neterr()
  3.    Author: Joe Booth
  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. #include "FILEIO.CH"
  12.  
  13. local handle
  14. use CUSTOMER new shared
  15. if (handle := fopen("ERROG.LOG", FO_READWRITE)) == -1
  16.    Neterr(.T.)     // Turn on network error flag
  17. endif
  18. if Neterr()    // Either from CUSTOMER use or Fopen() failure
  19.    ? "FILES ARE NOT AVAILABLE ON THE NETWORK..."
  20. endif
  21.  
  22. // end of file CHP1603.PRG
  23.