Solved

Form Control

Posted on 2001-06-27
5
161 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 100 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

688 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