6.1.2.8.1.8 GetAttr

Function Declaration

 Function GetAttr(PathName As String) As VbFileAttribute 

Parameter

Description

PathName

Expression that specifies a file name; can include directory or folder, and drive.

Runtime Semantics.

§ The argument MUST be a valid implementation defined external file identifier.

§ Returns an Integer representing attributes of the file, directory, or folder identified by PathName.

§ The value returned by GetAttr is composed of the sum of the following of the Enum elements of the Enum VBA.VbFileAttribute and have the following meanings:

Constant

Value

Description

vbNormal

0

Normal.

vbReadOnly

1

Read-only.

vbHidden

2

Hidden.

vbSystem

4

System file.

vbDirectory

16

Directory or folder.

vbArchive

32

File has changed since last backup.