FileSpec.Attributes Property (Typed) | |
One or more of the following characters concatenated into a string, indicating the attributes of the file represented by this file specification:
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOSystemClasses (in XSharp.VOSystemClasses.dll) Version: 2.21
Syntax VIRTUAL PROPERTY Attributes AS STRING GET
public virtual string Attributes { get; }
Request Example
View SourceProperty Value
Type:
StringOne 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