General information
Category:
Forms & Form designer
Title:
Pause code execution?
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only