Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SKIP FOR expression
Message
From
18/01/2005 05:42:18
 
 
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
00977929
Message ID:
00978003
Views:
22
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform