Hello:
Normally, in most applications that I make, I do not auto-create forms, just rather in the moment I need them. With this the application loads a little faster. Even in the case of modal windows I create them at the time that the client is going to edit that data and later I destroy them. So I use the following code:
function EditData: Boolean;
var
Dlg : TAnyDialog;
begin
Dlg := TAnyDialog.Create(Application);
Result := (Dlg.ShowModal = mrOk);
FreeAndNil(Dlg);
end;
In this case "ShowModal" is a function that returns ModalResult (mrOk, mrCancel, mrYes, etc...). The result of the function I use to refresh data in mrOk cases, or other things.
In the case of TUniForm "ShowModal" is a procedure and do not works as cycle waiting for the end of modal state, no in the case of WEB interface, in the Windows interface works as expecting.
So my question is: I have to call "ShowModal" and then make a cycle by myself waiting for change of ModalResult property???? Or, what???? If you could explain how works ShowModal in the WEB interface will be good for me. May be this is caused by my lack of knowledge on web interfaces.