Previous: 3.2.7. $D: Debug Information Switch To the Table of Contents Next: 3.2.9. $I: Include File Directive
3.2.7. $D: Debug Information Switch Table of Contents 3.2.9. $I: Include File Directive

- 3.2.8. -
Table of Contents
3. Compiler Directives
3.2. Switch and Parameter Directives
3.2.8. $I: I/O Checking Switch


3.2.8. $I: I/O Checking Switch


Targets: MS-DOS, OS/2, Win32


Compiler directives

Enables or disables the automatic code generation that checks the result of a call to an I/O procedure.

Syntax:
  {$I+} or {$I-}
Default:
  {$I+}
Remarks:
If an I/O procedure returns a non-zero I/O result when the $I switch is on, the program terminates, displaying a run-time error message.

When the $I switch is off, you should use the IOResult function to check for I/O errors.


Previous: 3.2.7. $D: Debug Information Switch To the Table of Contents Next: 3.2.9. $I: Include File Directive
3.2.7. $D: Debug Information Switch Table of Contents 3.2.9. $I: Include File Directive

- 3.2.8. -