Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to prevent to display many same call form?
Message
De
01/04/1999 13:36:18
 
 
À
31/03/1999 22:32:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00204111
Message ID:
00204358
Vues:
14
>Anyone know how to prevent to display the same called form when issue a do form comment ?
>example, when i click a button to do a form, the form will diplay. and if i click again the button it will display the same form again that mean i have issue two same form already.I only want it to display one time even though the user click how many time on the button.
>How to prevent that ?
>
>regard,
>chang

Hi Chang!

I use the following strategy: I make an object reference variable (usually a property of application object or global variable) to the form, and on issuing the form I check wether if it exists or doesnot.

if type("goApplication.frmMyForm.name")="C"
** form exist
goApplication.frmMyForm.Show()
else
do form myform name goApplication.frmMyForm linked
endif


BB
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform