Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Waiting on a Modeless form
Message
From
19/09/2007 18:17:54
 
 
To
19/09/2007 12:48:33
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:
01255636
Views:
19
Try something like this:

In first form where you call the second form:

1. Create property: lWaitForSecondForm = .T.
2. In method to call second form:
...
thisform.lWaitForSecondForm= .T.
DO FORM MySecondTopLevelForm WITH thisform
DO WHILE thisform.lWaitForSecondForm
  =INKEY(1,'H')
ENDDO
....
In the second form:

1. Create a property to hold the object reference to first form: oFirstTopLevelForm = .NULL.
2. In Init method:
LPARAMETERS poFirstTopLevelForm
thisform.oFirstTopLevelForm = poFirstTopLevelForm
...
3. In Destroy method:
thisform.oFirstTopLevelForm.lWaitForSecondForm = .F.
...
This should cause the first to wait in the loop until the destroy event occurrs in the second form.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform