Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to prevent to display many same call form?
Message
From
01/04/1999 13:36:18
 
 
To
31/03/1999 22:32:26
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00204111
Message ID:
00204358
Views:
15
>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
Map
View

Click here to load this message in the networking platform