Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Menu titles
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00642279
Message ID:
00642284
Views:
15
>I need to have the titles of the menu being passed to a parameter in VFP.
>I couldn't find any function to extract these, so I thought there may be some easy way I don't know of.
>For example in the VFP 7.0 system menu, the 5th pulldown shows Tools->Wizards and then Query, Table, Form, Report, etc., etc.
>I would like to, when user clicks the menu title, to enable the submenus automatically based on a security look-up record setup per user.
>The long route is to put code in each 'Skip for' clause, which I already have but is combersome to maintain when you get 10 pulldowns and about 3 levels in some cases.
>
>Does any body know an easy way, please help.

PRMBAR() returns the text of a menu item. You can disable the menu item with SKPBAR(), hide the item with HIDE MENU, or remove it with RELEASE BAR. What you might want to do is once the user logs in, run through a routine that disables the menu items they do not have access to.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform