This property of the File control returns a number indicating the file mode that was used to open the file.
file.Attr
The return values listed in the following table indicate the file access mode. If the return value is 0, the file is closed.
Constant |
Value |
None | 0 |
fsModeInput | 1 |
fsModeOutput | 2 |
fsModeRandom | 4 |
fsModeAppend | 8 |
fsModeBinary | 32 |
The Attr property is read-only. Use the Open method of the File control to set the file mode.