You receive an "Invalid procedure call or argument" error message when you call the SetAttr function in Visual Basic 6.0 (841701)
The information in this article applies to:
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
SYMPTOMSIn Microsoft Visual Basic 6.0, when you call the SetAttr function, you may receive the following error message: Invalid procedure call or argument CAUSEThis problem occurs because you are trying to set a read-only attribute. The error typically occurs when the Attributes parameter of the SetAttr function contains a value that corresponds to the Alias attribute, the Directory attribute, or the Volume attribute. This error occurs when either of the following conditions are true: - You retrieve the file attributes of a file or a directory that has the Alias attribute, the Directory attribute, or the Volume attribute set. Then you pass these file attributes as the Attributes parameter of the SetAttr function.
- You pass the vbAlias constant, the vbDirectory constant, or the vbVolume constant as the Attributes parameter of the SetAttr function.
Modification Type: | Major | Last Reviewed: | 5/21/2004 |
---|
Keywords: | kbFileIO kberrmsg kbprb KB841701 kbAudDeveloper |
---|
|