Click or drag to resize

FileSpec.Attributes Property (Typed)

X#
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.19
Syntax
 VIRTUAL PROPERTY Attributes AS STRING GET 
Request Example View Source

Property Value

Type: String
One 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:
CharacterDescription
AFile whose archive bit is set
HHidden file
NULL_STRINGNormal read/write file
RRead only file
SSystem file
Tip 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:
X#
1oFileSpec := FileSpec("abc.dbf")
2IF AT("R", oFileSpec:Attributes) > 0
3// Attribute string contains "R" therefore, the file is read only
4...
5ENDIF
See Also