> Hello Foxperts
> Is there a better way to administer user access rights to certain menu options, apart from the skip for method. What I'm currently doing is the have a public variable, GBL_RIGHTS. When the user logs one I search a group permission table and place a comma(,) delimited string in GBL_RIGHTS. I place the following code in the menu options Skip For method: [mnuname] $ GBL_RIGHTS. I would really appreciate any suggestions.
>
> Thanks.
As bernard already said, use GenmenuX. Iyou can place a short line in the comment section of the menu item. Like *:IF SomeChecking()
This automatically adds a piece of code to the generated menu MPR file.
Basically the function you call should do the checking for you whether or not a user is allowed to see that menuitem at all.
If, based on that checking the user is NOT allowed to see the item the added codesnippet clears out the item.
You can add the user rights in a table. that can then be checked by the function you call.
Boudewijn Lutge®ink
The attitude of "An eye for an eye and a tooth for a tooth" will make this world toothless and blind (Gandhi)