Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Suspend .prg execution
Message
De
11/08/2009 16:43:29
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01417392
Message ID:
01417416
Vues:
48
>I have a "do form" command in a .prg file
>
>There are code before and after the "do form" command
>
>How can I do to stop .prg execution and only continue it when form is released
>
>Looked up in set commands but didn't find any reference

As others said, you can make the form modal but then this form is the only form that the user can interact with. If you want to have other forms that the user can switch to and still pause the PRG code, you might try the following:
DO FORM MyForm
DO WHILE WEXIST("My Form Name")
    INKEY(1.0,'S')
    DOEVENTS
ENDDO
I have not tried this -- but it might work. I think I have seen some other solutions for this as well (maybe another will know).
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform