Article ID: 180455
Article Last Modified on 3/11/2005
Private Sub Form_Load()
On Error Resume Next
Dim sDrive
'Use the following line instead of sDrive = Left("c:\windows", 3)
sDrive = Mid("c:\windows", 1, 3)
If Err.Number = 0 Then
MsgBox "The Drive is " & sDrive, vbInformation, "Drive"
Else
MsgBox "Error: " & Err.Number & " - " & _
Err.Description, vbInformation, "Error Message"
End If
End Sub
Private Sub Form_Load()
On Error Resume Next
Dim sDrive
sDrive = Left("c:\windows", 3)
If Err.Number = 0 Then
MsgBox "The Drive is " & sDrive, vbInformation, "Drive"
Else
MsgBox "Error: " & Err.Number & " - " & _
Err.Description, vbInformation, "Error Message"
End If
End Sub
Additional query words: wince vbce vbce6 evb
Keywords: kbbug kbtoolkit kbpending KB180455