FileAttr Function

   
FileAttr Function

Class

Microsoft.VisualBasic.FileSystem

Syntax

 FileAttr(   filenumber   ) 
filenumber (required; Integer)

Any valid file number

Return Value

An OpenMode constant, as shown in the following table:

Mode

Value

 Input 

1

 Output 

2

 Random 

4

 Append 

8

 Binary 

32

Description

Returns the file-access mode for a file opened using the FileOpen procedure

VB.NET/VB 6 Differences

In VB 6, FileAttr includes a superfluous returntype parameter that must be set to 1 or an error results. In VB.NET, the parameter has been eliminated.

See Also

FileOpen Procedure

   


VB.Net Language in a Nutshell
VB.NET Language in a Nutshell
ISBN: B00006L54Q
EAN: N/A
Year: 2002
Pages: 503

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net