Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling menu item if table empty
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00016135
Message ID:
00016149
Views:
39
>Hi Folks,
>
>I need to disable my *history* option in my menu if the table is empty. How do I refresh my menu and disable (or enable for that matter) this option without having to open the table and check if it's empty?

Jon

One thing I do is in the Base class for my forms in the Load() is to check my environment. So everytime a form is loaded the environment is set. But I only have to write the code once! (s) You could do this or put such code in other places such as Activeate(), etc.

HTH,
Tom
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Previous
Reply
Map
View

Click here to load this message in the networking platform