FILEATTR(filenumber, returntype) |
Returns the file mode of the specified open file (Long). |
filenumber | The number of the file (Integer). |
returntype | The number indicating the type of information to return (Integer): 1 = Returns a value indicating the file mode (32 bit systems) 2 = Returns an operating system file handler (16 bit systems) |
REMARKS |
* The values that are returned when "returntype" = 2 specify the file access mode: 1 = Input. 2 = Output. 4 = Random. 16 = Append. 32 = Binary * If "filenumber" is not valid, then ?? * If "returntype" = 1, then an error occurs ?? * If "returntype" = 2, then an error occurs ?? * This function returns the file mode for files opened using the Open statement. * Can be used to determine the current attributes of an open file. * The equivalent .NET function is Microsoft.VisualBasic.FileSystem.FileAttr * For the Microsoft documentation refer to docs.microsoft.com |
FileAttr(1, 1) = "input mode"
FileAttr(1, 2) = "output mode"
FileAttr(1, 4) = "random mode"
FileAttr(1, 8) = "append mode"
FileAttr(1, 32) = "binary mode"
© 2022 Better Solutions Limited. All Rights Reserved. © 2022 Better Solutions Limited Top