Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Thisform.release does not work
Message
 
À
22/07/1998 19:55:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00120255
Message ID:
00120269
Vues:
21
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
Fil
Voir

Click here to load this message in the networking platform