Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Waiting on a Modeless form
Message
From
24/05/2005 16:26:22
 
 
To
24/05/2005 14:37:11
Irv Adams
MSC Managed Care, Inc.
Florida, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01017199
Message ID:
01017269
Views:
21
This message has been marked as a message which has helped to the initial question of the thread.
>To All:
>
>Is there an elegant way to wait for a modeless form to finish before the code continues? It's a top-level calling a top-level form. The called form does some calculations and returns (or sets) some values.
>
>I can think of a way by pausing execution, but wondered if there were others.
>
>TIA,

First, why don't you uses a Desktop in-Top Modal ?

Second, modeless Form is a async coding,
then callback is the master road:
* run pre code
* create modeless top form
* set a wait callback event for topForm unload
* bindevent(topForm,"UnLoad",m.thisForm,"CallBack",1)
* don't forget to add a character to the topForm's Unload method
* put the rest of the code int othe thisform.Calback
Of course it demands that not there are scope ties.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform