Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with releasing forms
Message
De
06/11/2003 03:38:31
 
 
À
05/11/2003 23:17:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00846922
Message ID:
00846953
Vues:
20
Hi,
>thisform.release
>_screen.activeform.release
>if _screen.activeform.caption="form1"
>    messagebox ("form1")
>endif
>if _screen.activeform.caption="form2"
>    messagebox ("form2")
>endif
>do form form3
>why am i getting the messagebox form2 instead of do form form3?

Not sure what you expect here. The ThisForm.Release() won't take effect until the method code completes (if it did then your subsequent code would be superfluous anyway). It would be simpler if you had an alternative way of referencing form1 - just:
form1.release
form2.release
do form form3
Regards,
Viv
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform