FIX: Incorrect Error Returned With FileSystem.GetAttrID: Q180626
|
When an invalid pathname is passed as a parameter to the GetAttr method of the FileSystem control, the following error message occurs:
The correct error returned should be "Invalid Pathname" or "File not Found."-2147024713 - "Cannot create a file when that file already exists"
Microsoft has confirmed this to be a problem in the Microsoft products listed
at the beginning of this article.
This problem was corrected in Windows CE Toolkit for Visual Basic 6.0.
Option Explicit
Private Sub Command1_Click()
On Error Resume Next
FileSystem1.GetAttr ("\\")
MsgBox Err.Description, , Err.Number
End Sub
Additional query words: wince vbce vbce5 vbce6
Keywords : kbToolkit kbVBp kbVBp500bug kbVBp600fix kbWinCE kbWinCE100 kbGrpVB
Version : WINDOWS:1.0
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: February 25, 1999