Posted on 1998-09-13
I have a loop in a form (say Form1) that goes:
while True do
This allows others things to happen at the same time BUT when I open a MODAL form (ie using Form2.ShowModal), I can't close the form. The OnClose event will not take place unless I terminate the loop in Form1.
How do I solve this problem?, ie to be able to open and close Form2 (as a modal form) with the loop still running in Form1.