Hello everyone,
I am trying to improve a program written in Visual Basic 6.0.
The program will load data from a BL file to the database, then I found there is a bug here. The program always missing some data, especially the last data of the file.
I read the program code and guess maybe the mouse pointer effects the program,so I tried to modify the number but the error is still exists.
I use many methods to fix the bug but the program still miss the data.
Here is the original code of the program:
Does anyone has ideas or advice about how to fix the error?
Thank you.
Yours faithfully,
beginner76
I am trying to improve a program written in Visual Basic 6.0.
The program will load data from a BL file to the database, then I found there is a bug here. The program always missing some data, especially the last data of the file.
I read the program code and guess maybe the mouse pointer effects the program,so I tried to modify the number but the error is still exists.
I use many methods to fix the bug but the program still miss the data.
Here is the original code of the program:
Code:
Private Sub startprocess()
Dim strTemp As String
strTemp = Dir(dir1.Text)
Me.MousePointer = 11
DoEvents
Do Until strTemp = ""
Select Case UCase(Left(strTemp, 2))
Case "BLfile"
If Len(strTemp) = 8 Then
Me.MousePointer = 11
Call LoadBLFile(dir1.Text & strTemp, strTemp)
Me.MousePointer = 0
End If
End Select
strTemp = Dir
Loop
Me.Height = 2000
DoEvents
Me.MousePointer = 0
DoEvents
End Sub
Thank you.
Yours faithfully,
beginner76
Comment