qp.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
File Access Mode Numbers
  Dos Unit Contents Index                                   Back
 
  CONST
      { file access modes }
      FMClosed = $D7B0;    FMInput = $D7B1;
      FMOutput = $D7B2;    FMInOut = $D7B3;
 
  Unit:  Dos
 
  Description
 
    The constants for file-access modes are used for testing the Mode
    field in the TextRec and FileRec types (defined in the Dos unit)
    after file I/O. Use a variable of either type and the AND operator
    to compare the field with one of these constants:
 
       IF TextRec_variable.Mode = FMInput THEN . . .