I have a Modal form, and in the Ok button it processes some information, that I need in the form that called the modal form.
How can I get it out before it closes?
Or delay the close till I say it can close.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I expect that your OK button has
ModalResultset tomrOK. If you want to add error checking to the OK button then change that tomrNone. Add anOnClickhandler to the button which does whatever checking or processing you need. If it determines that the form can close, setSelf.ModalResult := mrOKin theOnClickhandler.