Files.GetAttr |
Top Previous Next |
Syntax function Files.GetAttr(FileName: string): integer
Alternative Names
Description Returns the file attributes for the file identified by FileName. In case of error, NULL is returned, if successful one or a combination of the following is returned:
See also
Example execute udsblock as begin /* get current file attributes */ attrs = Files.GetAttr('c:\data\myfile.txt');
/* include 'read only' flag for the file attributes by using a bitwise OR from the Math namespace */ newattrs = Math.Or(attrs, __faReadOnly);
/* modify file attributes */ Files.SetAttr('c:\data\myfile.txt', newattrs); end |