I have a situation in a VB6 program in which I want the program to wait for a specific filename to appear in a folder. I was thinking of having it repeatedly try to open that file, and then put an "on error goto" statement to make it not blow up, and possibly a timer so that it doesn't sit there and spin continually. The first "on error goto" command works OK, but subsequent calls to it cause it to throw the "file not found" dialog. So...how do I reset the error handler so that it works for what I need it to do? TIA.
fIntFile = FreeFile
'Handle file not found errors
On Error GoTo NoFileAvailable
Open strIntFileName For Input As #fIntFile