FileAttr Function
Syntax
FileAttr([#]StreamNum [, ReturnValue])
Group
Description
Return StreamNum's open mode or file handle.
Parameters |
Description |
Streams 1 through 255 are private to each macro. Streams 256 through 511 are shared by all macros. |
|
1 - (default) return the mode used to open the file: 1=Input, 2=Output, 4=Random, 8=Append, 32=Binary |
See Also
Example
Sub Main
Open "XXX" For Output As #1
Debug.Print FileAttr(#1,1) ' 2
Close #1
End Sub