Skepsis IT Posted July 4, 2013 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
AlbertoVesx Posted July 4, 2013 Posted July 4, 2013 Why dont you put the messageDlg inside procedure? 1 Quote
Administrators Farshad Mohajeri Posted July 4, 2013 Administrators Posted July 4, 2013 Why dont you put the messageDlg inside procedure? Quote
Skepsis IT Posted July 5, 2013 Author Posted July 5, 2013 Obvious solution in front of my eyes! Maybe too tired! Furthermore works fine! Thanks to all! Quote
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.