This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.
This version is copyright and may only be used for local testing purposes. It may not be distributed.
Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.
Description
Return information about an open file.
Syntax
n = FILE_Attr(FileID, attribute)
Returns
Nuber
Parameters
Name |
Type |
Optional |
Meaning |
FileID |
Number |
No |
A previously open random access file handle |
attribute |
Number |
No |
Attribute number, one of the following:
-3 The device type. Returns 1 for a file, 2 for a device. COMM, TCP and UDP are classified as devices.
0 The open state. TRUE (non-zero) if open, FALSE (zero) if closed.
2 The operating system file handle for the file. This handle can be used with particular Windows API calls files to manipulate files opened with thinBasic.
|
Remarks
Restrictions
See also
Examples