?
Solved

Form Control

Posted on 2001-06-27
5
Medium Priority
?
162 Views
Last Modified: 2010-04-06
How do you control the flow a program when calling
another form to be displayed?

Example: i am at form1, making a call to display form2
which will get some user input and return to form1.

form1
--------------------------------
form2.Show;
showmessage('back from form2');

The text "back from form2" displays before I get
to form2.  How do I pass control to form2 and then
exit and return the the statment following
the statement "form2.show"?

Your help is much needed.
Thanks


0
Comment
Question by:waipahu
[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
5 Comments
 
LVL 1

Accepted Solution

by:
trex_fire earned 400 total points
ID: 6233557
use showmodal, this way control flow will be back when form1 closes.

T-Rex
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 6234052
as trex said, except
>...back when form2 closes.

:-)

0
 
LVL 4

Expert Comment

by:jsweby
ID: 6234114
To add to this, using ShowModal also returns a result depending on how Form2 was closed which you can use to determine if the user pressed OK or Cancel, for example.

J.
0
 

Author Comment

by:waipahu
ID: 6234497
Thank you T-REX!  It works!
Hey what do you guys do for a living? Delphi Programmers?
Where are you all from?
Any idea how Delphi 6 is?

Thanks again
Aloha from Hawaii!
0
 
LVL 4

Expert Comment

by:jsweby
ID: 6234512
I'm a Delphi developer, yes, from the UK. Saw Delphi 6 at the last Delphi Conference, looks great, especially the Enterprise edition with the XML support. They've speeded up the code insight as well which runs horribly slow in Delphi 5.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month10 days, 11 hours left to enroll

764 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