General information
Category:
Coding, syntax & commands
Hi,
How do I get rid of "Input past end of the line" error?
what went wrong during opening a file?
Code goes like this:
If FileLog.ListIndex < 0 Then
MsgBox "No File Selected....", vbOKOnly, "View Log"
Exit Sub
End If
TxtView = ""
hfile = FreeFile
sfilename = TxtPath.Text
Open sfilename For Input As #hfile
TxtView = Input$(LOF(hfile), hfile)
Close #hfile
TIA.
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only