Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SKIP FOR expression
Message
De
18/01/2005 05:42:18
 
 
À
17/01/2005 20:42:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
00977929
Message ID:
00978003
Vues:
21
Peter

How about keeping a logical array of each instantiation of the form and checking the appropriate array el?

>In the SKIP FOR expression of a menu item I want to refer to a property of the form. This works well if I declare global variables for my forms (like goSomeWindow), but that trick only works well if the form won't be instantiated more than once at the same time. The expression will then be something like:
SKIP FOR goSomeWindow.SomeProp = .T.
This trick has been my reaction to my finding that it is troublesome and frustrating to declare something like:
SKIP FOR _vfp.activeform.SomeProp = .T.
That expression gives an error if the form is out of scope and the expressions are evaluated anyway, for example if the form is minimized.
>
>But now I have a form that can be instantiated more than once at the same time, and my goSomeWindow trick won't work.
>
>Who knows another trick? I'm desperate ( again :).
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform