Programming Reference Manual
FileAttr
Syntax
FileAttr(
StreamNum
,
ReturnValue
)
Description
Return
StreamNum
's open mode or file handle.
Parameter
Description
StreamNum
Streams 1 through 255 are private to each macro. Streams 256 through 511 are shared by all macros.
ReturnValue
1 - return the mode used to open the file:
1=Input,
2=Output,
4=Random,
8=Append,
32=Binary
2 - return the file handle
See Also
Open
.
Example
Sub Main
Open "XXX" For Output As #1
Debug.Print FileAttr(1,1) ' 2
Close #1
End Sub
Home
IDE Overview
Declarations
Data Types
Assignment
Flow Control
Error Handling
Conversion
Variable Info
Constant
Math
Financial
Strings
StringClass
Objects
Time/Date
File
File
ChDir
ChDrive
Close
CurDir
Dir
EOF
FileAttr
FileCopy
FileDateTime
FileLen
FreeFile
Get
GetAttr
Input #
Input$
Kill
Line Input
Loc
Lock
LOF
MkDir
Name
Open
Print
Put
Reset
RmDir
Seek
Seek #
SetAttr
Unlock
Write
User Input
User Dialog
Dialog Functions
Web Form
CCL (web server)
DDE
Settings
Miscellaneous
Operator
Translator