Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to prevent form open many times ?
Message
From
24/04/2001 13:02:07
 
 
To
24/04/2001 10:43:56
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00498813
Message ID:
00499125
Views:
17
>Probably the simplest thing you can do is to put code in the menu item's 'skipfor'. Say your form name is 'MyForm', then something like:
>
>
>   VarType(MyForm.Name) = 'C'
>
>
>Then if the form is open, it's name will be a type of 'C' and the menu item will be disabled.
>

And if your form MyForm does not exist (and the variable does not exist) you'll get an error if you use VARTYPE() (Alias MyForm does not exist). You should use TYPE("MyForm.Name") in this case.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform