qb45advr.hlp (
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 Details
◄QuickSCREEN► ◄Details► ◄Example► ◄Contents► ◄Index►
──────────────────────────────────────────────────────────────────────────────
FILEATTR Function Details
Syntax
FILEATTR(filenumber,attribute)
Argument Description
filenumber The number of an open file. This is the same number
used in the OPEN statement. You can use a numeric
expression as long as it evaluates to the number of
an open file.
attribute Indicates the type of information to return. When
attribute is 1, FILEATTR returns a code indicating
a file's mode (see below). When attribute is 2,
FILEATTR returns the file's DOS file handle.
The table below lists the return values and corresponding file modes
when the value of attribute is 1.
Return Value Mode
1 INPUT
2 OUTPUT
4 RANDOM
8 APPEND
32 BINARY