So, I've created a custom class to scan a folder for new files, open them, scrap the text and add the data to a table. The directory has several files so the process can take 5+ minutes.
I am trying to have a procedure in the class to provide a status report, ultimately do so something like this:
Problem is, the Scan procedure seems to lock up the class until it's complete. Using doevents doesn't seem to release the thread.
Any ideas on how I can get progress of a procedure as it's running?
TIA!
-Brian
I am trying to have a procedure in the class to provide a status report, ultimately do so something like this:
Code:
Dim fs as new clsFileScanner
fs.scan
do until fs.complete
debug.print fs.progress
loop
Problem is, the Scan procedure seems to lock up the class until it's complete. Using doevents doesn't seem to release the thread.
Any ideas on how I can get progress of a procedure as it's running?
TIA!
-Brian