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?
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement