How to make it possible for a user to interupt a search process?
Posted on 2003-10-27
Hi again :)
I have a small program written in Delphi 6.
The program search through small textfiles (5 - 10 kB) for textstrings the user specify and list the names of all files where the text match.
It search through a specified folder and it's subfolders. There are thousands of files so in the worse case , there can be more than thousen hits.
In that case, the user may want to interupt the search process and be more specific what he search for.
In the code I use a FindFirst and FindNext to search through all files.
How do I make it possible for the user to interupt the process?