Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pause code execution?
Message
From
06/02/2002 17:32:23
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Pause code execution?
Miscellaneous
Thread ID:
00616326
Message ID:
00616326
Views:
72
I have two forms. Form A calls Form B from Form's A cmdOk.click() event. There is some code in Form A's cmdOk.click() event that shouldn't be run until after form B is closed. Is it possible to somehow "pause" form A's code from executing until form B is closed?

I thought I could have a global variabled called glPause and set that to .t. right before form B is called and then in Form A have a do while loop that keeps going until Form glPause is set to false. And then when form B is closed set glPause to false? Not sure if this would work or if its a good way to do it. I looked at the Sleep API function but I don't know how long the form B will be open for.

Thanks,
Chris
Next
Reply
Map
View

Click here to load this message in the networking platform