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

Another way to do this is to create form properties (or an array) for each form you'll be launching. Suppose I have a from Child1, launched from Parent form.

Create property Parent.Child1, set to .NULL. Depending on how you launch Child1, you set the Parent.Child1 with NAME clause when you launch it, example

DO FORM Child1 NAME Parent.Child1

Now Parent.Child1 is type 'O', so you can check if TYPE('Parent.Child1') = 'O',
then form exists. An additional advantage is that you can refer to any controls on Child1 directly (and vice-versa), if needed ...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform