home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / pascal / 8504 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  850 b 

  1. Path: sparky!uunet!mcsun!uknet!almac!mike.dickson
  2. From: mike.dickson@almac.co.uk (Mike Dickson)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Re: Avoiding system error
  5. Message-ID: <822.548.uupcb@almac.co.uk>
  6. Date: 23 Jan 93 17:05:00 GMT
  7. Reply-To: mike.dickson@almac.co.uk (Mike Dickson)
  8. Organization: Almac BBS Ltd. +44 (0)324 665371
  9. Lines: 11
  10.  
  11. EH..The compiler directives {$I-} and {$I+} turn IO error checking off and on.
  12. EH..It's a good idea to turn it off before opening files and such, and then
  13. EH..checking DOSError to see if things are ok
  14.  
  15. No, it's IOResult you ought to check for IO errors like this; DOSError
  16. only reports on erors returned by the operating system.
  17.  
  18. /\/\ | |< |.                                     mike.dickson@almac.co.uk
  19. ---
  20.  . SLMR 2.1a . Official Tagline of the 1992 Olympics
  21.                                                    
  22.