6.1.2.5.1.4 FileAttr

Function Declaration

 Function FileAttr(FileNumber As Integer, 
                   Optional ReturnType As Integer = 1                   ) As Long

Parameter

Description

FileNumber

An Integer data value that is a valid file number (section 5.4.5).

ReturnType

An Integer data value that indicating the type of information to return. Specify the data value 1 to return a value indicating the file mode. The meaning of other data values is implementation defined.

 

Runtime Semantics.

§ Returns a Long representing the file mode (section 5.4.5) for files opened using the Open statement.

§ When the ReturnType argument is 1, the following return values indicate the file access mode:

Mode     

Value

Input      

1

Output

2

Random

4

Append

8

Binary  

32