Hi,
I have two forms using this code:
begin
if NewTermIdEdt.Text = '' then
begin
ShowMessage('Please Enter Information');
Exit;
end
However, the two recact differently when the user clicks on the 'OK' button after the ShowMessage procedure. On one the form remains visible. On the other it closes (??). I've compared the properties of both. They're identical. Both have the ModalResult property set to, "mrOK". I don't want the second form to close but I'm not sure how to prevent it.
Any ideas?
Thanks.
I have two forms using this code:
begin
if NewTermIdEdt.Text = '' then
begin
ShowMessage('Please Enter Information');
Exit;
end
However, the two recact differently when the user clicks on the 'OK' button after the ShowMessage procedure. On one the form remains visible. On the other it closes (??). I've compared the properties of both. They're identical. Both have the ModalResult property set to, "mrOK". I don't want the second form to close but I'm not sure how to prevent it.
Any ideas?
Thanks.