Attr

This property of the File control returns a number indicating the file mode that was used to open the file.

Syntax

file.Attr

Parameters

file
Reference to a File control.

Return Values

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

Remarks

The Attr property is read-only. Use the Open method of the File control to set the file mode.