?
Solved

How can i call a specific form and continue executing instruccions after the form is closed

Posted on 2003-11-07
2
Medium Priority
?
163 Views
Last Modified: 2012-05-04
Hi, I need to know how can i activate a Form from a specific function and after then form is closed return to the function that activate it. And execute the rest of the functions.
Example.

  I have a form to make a search from an specific table. That search is going to return some values i need to work for on the "parent" form so, when i close then "child" form i need the program to coninue executing other instruccions After the

     "Form1.Visible := True;"

   
0
Comment
Question by:jpmonja
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 27

Accepted Solution

by:
kretzschmar earned 1000 total points
ID: 9702716
just use

     Form1.ShowModal;

instead of

     Form1.Visible := True;

meikl ;-)

   



   

0
 
LVL 1

Expert Comment

by:Chopinke
ID: 9705813
Here is another way if you want to create this window at runtime and not automatically when the app starts:

Go to Project / Options and remove the FormX from the autocreate.

Then when you want to show the form ( I assume this is a dialog box for example), then:

FormX := TFormX.Create(FormMain);
try
  if FormX.ShowModal = mrOK then
    //OK button was pressed on the form
  else
    //Some other button, like CANCEL button was pressed
finally
  FormX.Free;
end;
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month9 days, 11 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question