Jump to content

How to catch Modal Result


surensiddhi

Recommended Posts

How to catch the modal result returned from the called form. Following code works fine in Delphi but it is not working in UniGUI.

 

if GetSQLParaForm.ShowModal = mrOK then  // Get the parameter values for the SQL Statement

begin

    //show the result set with the parameters set in GetSQLParaForm

    GridViewForm.ShowModal;
end;

 

 

In GetSQLParaForm

 

UniButton is ModalResult is set to mrOK ;    // does not work

 

procedure TGetSQLParaForm.UniBitBtn1Click(Sender: TObject);
begin
  Modalresult := mrOK;   // this also does not work;

end;

 

 

Any one know the alternative way to handle this.

 

 

Link to comment
Share on other sites

  • 1 year later...
On 2/5/2017 at 5:00 AM, surensiddhi said:

How to catch the modal result returned from the called form. Following code works fine in Delphi but it is not working in UniGUI.

 

if GetSQLParaForm.ShowModal = mrOK then  // Get the parameter values for the SQL Statement

begin

    //show the result set with the parameters set in GetSQLParaForm

    GridViewForm.ShowModal;
end;

 

 

In GetSQLParaForm

 

UniButton is ModalResult is set to mrOK ;    // does not work

 

procedure TGetSQLParaForm.UniBitBtn1Click(Sender: TObject);
begin
  Modalresult := mrOK;   // this also does not work;

end;

 

 

Any one know the alternative way to handle this.

 

 

Got any answers? I'm also in the same doubt

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...