- Identifying the files attributes
- Modifying the attributes of a file (syntax 2)
- Handling errors
- Operating mode in Windows Vista (and later)
fAttribute (Function) In french: fAttribut Returns or modifies the attributes of a file.
// Retrieve the attributes of a file ResAttribute = fAttribute(FilePath + "\File.txt") IF ResAttribute <> "ERR" THEN ... END
Syntax
Retrieving the attributes of a file or directory Hide the details
<Result> = fAttribute(<File path>)
Remarks Identifying the files attributes To retrieve the different attributes of a file, check whether one of the letters identifying an attribute is found in <Result>. This search can be performed by Position for example. Handling errors fAttribute throws an error in the following cases: - the specified file does not exist,
- the name of the specified file is invalid,
- the specified file is opened or locked by another application (when modifying the attributes only),
- the letters specified in <File attributes> do not correspond to file attributes.
This page is also available for…
|
|
|
|