|
-
Apr 5th, 2020, 03:00 PM
#6
Hyperactive Member
Re: Can VB6 download an entire folder/directory from my website, and save it to the a
It means you tried to read a record but there was no record to read. This occurs when you try to read a record on an empty file (ie. the file has no records) or you have already read all the records and then you try to read another. If you want to avoid the error message just put On Error Resume Next before the Text1.Text = Input$(LOF(hfile), hfile) line and then after that line put an If Err Then....Else....End If clause. I think another way is to check the LOF before you attempt to read (after the Open and before the Input lines): If LOF(hfile) = 0 Then.....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|