Hi i want my program to open a logfile at start wich is no problem but if the file doesn't exist it will be created on close so the error isn't bad but i want to make my status bar say: "Log file not found, automatically created" but even when there is a log file the status bar still says: "Log file not found, automatically created" do i miss something here?
Private Sub Form_Load()
StatusBar1.SimpleText = "Ready"
On Error GoTo Errorhandler
Open App.Path & "\logfile.Log" For Input As #1
Do Until EOF(1)
Line Input #1, variablename
List1.AddItem variablename
Loop
Close #1
Winsock1.Listen
Errorhandler:
StatusBar1.SimpleText = "Log file not found, automatically created"
End Sub
Hope u guys can help me out
Greetings
Private Sub Form_Load()
StatusBar1.SimpleText = "Ready"
On Error GoTo Errorhandler
Open App.Path & "\logfile.Log" For Input As #1
Do Until EOF(1)
Line Input #1, variablename
List1.AddItem variablename
Loop
Close #1
Winsock1.Listen
Errorhandler:
StatusBar1.SimpleText = "Log file not found, automatically created"
End Sub
Hope u guys can help me out
Greetings