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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only