>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement