Jump to content

Callback form problem


Skepsis IT

Recommended Posts

Hi everybody,

 

i've made a search form that has as a result a value. I use the callback method just like the example and works fine, but I have an unexpected behaviour problem. Look at the following code.

SearchDlgForm.Show(
  procedure(Result:Integer)
    begin
      res:=Result;
    end
  );

  MessageDlg('Are you sure?',mtConfirmation,mbYesNo,_Confirm);

The Search form pops up and right away the messagedsl command also execute. I want to pop up the search form and when I close it and res returns then the messagedlg command execute.

 

Any ideas?

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...