FileSpec.Attributes Property | |
One or more of the following characters concatenated into a string, indicating the attributes of the file represented by this file specification:
Namespace:
VO
Assembly:
VOSystemClasses (in VOSystemClasses.dll) Version: 2.19
Syntax VIRTUAL PROPERTY Attributes AS USUAL GET
public virtual Usual Attributes { get; }
Request Example
View SourceProperty Value
Type:
UsualOne or more of the following characters concatenated into a string, indicating the attributes of the file represented by this file specification:
Remarks
One or more of the following characters concatenated into a string, indicating the attributes of the file represented by this file specification:
Character | Description |
---|
A | File whose archive bit is set |
H | Hidden file |
NULL_STRING | Normal read/write file |
R | Read only file |
S | System file |
Tip |
---|
You can use the At() function to determine if a particular property is set. |
Examples
This example checks if the file "abc.dbf" is read only:
1oFileSpec := FileSpec("abc.dbf")
2IF AT("R", oFileSpec:Attributes) > 0
3
4...
5ENDIF
See Also