Hi i am trying to port a vb application from 98 to xp i am getting the errors in the code mentioned below.
Can anyone tell me what this code does?
Sub KillFiles(ByVal FileSpec)
Dim count As Integer
Dim files() As String
Dim i As Integer
Dim ThisFile As New QPFile <-- Gettting error
Dim found As QPFoundFile
count = FCount(FileSpec)
If count > 0 Then
'ReDim files(count + 1)
ReDim files(0 To count)
files(0) = FileSpec
' ReadFile files(0)
Set found = ThisFile.Dir(files(0), True)
For i = 1 To count
KillFile files(i)
Next i
End If
End Sub
regards
tekiguy74