Click or drag to resize

FileSpec.Attributes Property

X#
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 
Request Example View Source

Property Value

Type: Usual
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