6.1.2.5.2.7 SetAttr

Subroutine Declaration

 Sub SetAttr(PathName As String, 
             Attributes As VbFileAttribute) 

Parameter

Description

PathName

String data value that specifies a file name can include directory or folder, and drive.

Attributes

Constant or numeric expression, whose sum specifies file attributes.

 

Runtime Semantics.

§ Sets attribute information for a file.

§ A run-time error occurs when trying to set the attributes of an open file.