home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a012 / 1.ddi / CHAP24.EXE / CHP2408.PRG < prev    next >
Encoding:
Text File  |  1991-04-30  |  1.0 KB  |  39 lines

  1. /*
  2.    Listing 24.8  Errmsg()
  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. Function errmsg(nErr)
  12. do case
  13. case nErr = 2
  14.    ? "Check the spelling of the file name...."
  15. case nErr = 3
  16.    ? "Check that the proper path is designated..."
  17. case nErr = 4
  18.    ? "Need to increase CONFIG.SYS files statement..."
  19. case nErr = 5
  20.    ? "The file is probably set to read-only...."
  21. case nErr = 6
  22.    ? "Programming problem - contact the programmmer..."
  23. case nErr = 15
  24.    ? "You've specified an invalid drive letter...."
  25. case nErr = 19
  26.    ? "Remove the write-protect tab from the diskette..."
  27. case nErr = 21
  28.    ? "Try shutting the drive door..."
  29. case nErr = 29
  30.    ? "The disk is full....."
  31. case nErr = 32
  32.    ? "Someone else is using the file..."
  33. case nErr <> 0
  34.    ? "CONTACT the programmer immediately!!!!"
  35. endcase
  36. return NIL
  37.  
  38. // end of file CHP2408.PRG
  39.