If you use Andrew Ross McNeil's genmenux, you can actually remove menu items if the user does not have sufficient permission to access a particular application function. Instead of using the skip for, you put an expression in the comment for the menu item. For example, let's say you have a menu option to manage your users but only admins should be able to access it. In the comment, you would put something like this:
*:IF MyPermissionFunction([userID]) If your MyPermissionFunction does not return the appropriate value (typically boolean), the menu item is removed before the menu is even displayed. The magic is the *: as far as genmenux is concerned. There are a whole bunch of directives in addition to the *:IF. rk -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Kurt Wendt Sent: Friday, July 31, 2009 10:46 AM To: [email protected] Subject: A Menu Utility to Limit Access... Hello folks, Now - within the Menu Designer you have the Options for each menu item - and there is the "Skip For" option within the Prompt Options. As of right now I am calling a procedure from the Skip For option to tell FoxPro when to Skip (i.e. Not Allow access to a particular menu option). _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/df1eef11e586a64fb54a97f22a8bd044065519e...@ackbwddqh1.artfact.local ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

