GETATTR
(Difference between revisions)
(Created page with "= <span class="f_Header">Action</span> = Returns the file Attribute. <span style="font-family: Arial;"> </span> <span style="font-family: Arial;"> </span> = <spa...") |
|||
Line 23: | Line 23: | ||
| valign="top" width="56%" style="width: 450px; border: 1px solid rgb(0, 0, 0);" | | | valign="top" width="56%" style="width: 450px; border: 1px solid rgb(0, 0, 0);" | | ||
− | + | Numeric variable which is assigned with the file attribute. | |
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
| valign="top" width="19%" style="width: 150px; border: 1px solid rgb(0, 0, 0);" | | | valign="top" width="19%" style="width: 150px; border: 1px solid rgb(0, 0, 0);" | | ||
− | + | sFile | |
− | + | ||
− | + | ||
− | + | ||
+ | | valign="top" width="56%" style="width: 450px; border: 1px solid rgb(0, 0, 0);" | <div>The name of the file (no wildcard) to get the attribute from.</div><div>You may also omit the name in which case the file will be used previous found by the DIR() function.</div> | ||
|} | |} | ||
</div> | </div> | ||
<span style="font-family: Arial;"> </span> | <span style="font-family: Arial;"> </span> | ||
− | This functions returns | + | This functions returns the DOS file attributes. A file can have multiple attributes. |
<span style="font-family: Arial;"> </span> | <span style="font-family: Arial;"> </span> | ||
Line 80: | Line 78: | ||
<span style="font-family: Arial;"> </span> | <span style="font-family: Arial;"> </span> | ||
− | <span style="font-family: Arial;"> </span> | + | <span style="font-family: Arial;"> </span><span style="font-size: 10pt;">A file could have an attribute of 3 (hidden+ read only)</span> |
= <span class="f_Header">See also</span> = | = <span class="f_Header">See also</span> = | ||
Line 88: | Line 86: | ||
<span style="font-family: Arial;"> </span> | <span style="font-family: Arial;"> </span> | ||
− | + | = <span style="font-size: 14pt; font-weight: bold;">Partial Example</span> = | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | <span style="font- | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
<br/><source lang="bascomavr"> | <br/><source lang="bascomavr"> |
Revision as of 22:58, 21 November 2014
Contents |
Action
Returns the file Attribute.
Syntax
bFileAttribut = GETATTR([sFile])
Remarks
bFileAttribut |
Numeric variable which is assigned with the file attribute. |
sFile |
The name of the file (no wildcard) to get the attribute from. You may also omit the name in which case the file will be used previous found by the DIR() function.
|
This functions returns the DOS file attributes. A file can have multiple attributes.
Return value |
Open mode |
1 |
INPUT |
2 |
OUTPUT |
8 |
APPEND |
32 |
BINARY |
A file could have an attribute of 3 (hidden+ read only)
See also
INITFILESYSTEM , OPEN , CLOSE, FLUSH , PRINT, LINE INPUT, LOC, LOF , EOF , FREEFILE , SEEK , BSAVE , BLOAD , KILL ,DISKFREE , DISKSIZE , GET , PUT, FILEDATE , FILETIME , FILEDATETIME , DIR , FILELEN, WRITE , INPUT
Partial Example
'open the file in BINARY mode Print Getattr("somefile.bin")
Languages | English |
---|