Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Thisform.release does not work
Message
 
 
To
22/07/1998 19:55:22
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00120255
Message ID:
00120269
Views:
22
I can reproduce this problem as well. Wexist() - being an old xBase function - it is not surprising that it can and does yield unreliable results<s>.

As an alternative, you may want to use this for your Skip For expression instead: Type("FrmFoo.name") <> "C".

This example assumes an object variable with the name of FrmFoo. I don't recommend doing this, but in the short term, it can work for you. One thing I have done, is to have a class with a method that accepts a form name. The method in turn iterates through the forms collection - and - if a form in the collection has that name - .T. is returned. Otherwise, .F. is returned.



>I use the WEXIST function set menu options to greyed out. When a form is visible, the menu option is greyed out. I call thisform.release to release the form. It disappears as expected but WEXIST still shows .T. (sometimes - and I can recreate the problem consistently). Any thoughts as to what I might be doing wrong?
Previous
Reply
Map
View

Click here to load this message in the networking platform