Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pause code execution?
Message
De
06/02/2002 17:32:23
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Pause code execution?
Divers
Thread ID:
00616326
Message ID:
00616326
Vues:
73
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform