I am trying to use KILL statement/function in VB 6, but error trapping not working. file is not on the system. Code is failing in Debug mode with error code 53 as expected and I can't get pass the kill statement/function. Any pointers???
snippet of the code
Private Sub Command1_Click()
Dim xyz As String
On Error Resume Next
xyz = "c:\xyzxyzx.tif"
Kill (xyz)
On Error GoTo 0
End Sub
Thanks in advance.
snippet of the code
Private Sub Command1_Click()
Dim xyz As String
On Error Resume Next
xyz = "c:\xyzxyzx.tif"
Kill (xyz)
On Error GoTo 0
End Sub
Thanks in advance.