bas7qck.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.
FILEATTR Function
  Syntax  Details  Example                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
FILEATTR(filenumber%,attribute%)
 
    ■ filenumber%    The number of an open file or ISAM table.
    ■ attribute%     A numeric expression, either 1 or 2, that indicates
                     the type of information to return.
 
Returns
    When attribute% = 2    The DOS file handle if filenumber% indicates a
                           file, or 0 if filenumber% indicates an ISAM table.
    When attribute% = 1    A value indicating the file's mode:
 
                            Value    Mode          Value    Mode
                            ═══════════════        ═══════════════
                              1      Input           8      Append
                              2      Output         32      Binary
                              4      Random         64      ISAM
 
See Also    OPEN (File I/O)