>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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only