Skepsis IT Posted July 4, 2013 Share Posted July 4, 2013 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? Quote Link to comment Share on other sites More sharing options...
AlbertoVesx Posted July 4, 2013 Share Posted July 4, 2013 Why dont you put the messageDlg inside procedure? 1 Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted July 4, 2013 Administrators Share Posted July 4, 2013 Why dont you put the messageDlg inside procedure? Quote Link to comment Share on other sites More sharing options...
Skepsis IT Posted July 5, 2013 Author Share Posted July 5, 2013 Obvious solution in front of my eyes! Maybe too tired! Furthermore works fine! Thanks to all! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.