I want to know how Application.Exitscript works.
For example File.Find("C:", "*.txt") was fired by some button (OnClick). And I want to stop it by clicking on another button. So I tried to to use Application.Exitscript on 'OnClick' action but it didn't stop 'find' action. What is more, during that action is performed Aplication.Exit script doesn't work till it ends. So then if I want to close my application I have to terminate it (kill process).
So how should I use works Application.Exitscript ?


.