Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to prevent form open many times ?
Message
From
24/04/2001 15:12:41
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00498813
Message ID:
00499195
Views:
17
Whoops! Darned right! Got to learn to start waiting for the brain to catch up with the fingers.

Alan

>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform