Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Boudewijn Lutgerink
  Where is Boudewijn Lutgerink?
 Hoonaardstraat, Driel
 Netherlands
 Boudewijn Lutgerink
 To: nyron williams
  Where is nyron williams?
 Kingston
 Jamaica
 nyron williams
 Tags
Subject: RE: Alternative to "Skip For"
Thread ID: 119218 Message ID: 120110 # Views: 40 # Ratings: 1
Version: Visual FoxPro 9 Category: Menus
Date: Monday, January 29, 2007 10:01:37 AM         
   


> 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)

COMPLETE THREAD

Alternative to "Skip For" Posted by nyron williams @ 1/21/2007 12:22:41 AM
RE: Alternative to "Skip For" Posted by Ken Murphy @ 1/21/2007 4:59:46 AM
RE: Alternative to "Skip For" Posted by nyron williams @ 1/21/2007 3:21:56 PM
RE: Alternative to "Skip For" Posted by Ken Murphy @ 1/21/2007 3:28:01 PM
RE: Alternative to "Skip For" Posted by Bernard Bout @ 1/27/2007 1:05:23 PM
RE: Alternative to "Skip For" Posted by nyron williams @ 1/27/2007 4:35:13 PM
RE: Alternative to "Skip For" Posted by Dragan Nedeljkovich @ 1/27/2007 6:46:25 PM
RE: Alternative to "Skip For" Posted by nyron williams @ 1/27/2007 8:22:33 PM
RE: Alternative to "Skip For" Posted by Dragan Nedeljkovich @ 1/30/2007 2:33:24 AM
RE: Alternative to "Skip For" Posted by nyron williams @ 1/31/2007 9:51:04 PM
RE: Alternative to "Skip For" Posted by Bernard Bout @ 1/30/2007 4:51:07 AM
RE: Alternative to "Skip For" Posted by nyron williams @ 1/31/2007 9:48:14 PM
RE: Alternative to "Skip For" Posted by Boudewijn Lutgerink @ 1/29/2007 10:01:37 AM
RE: Alternative to "Skip For" Posted by nyron williams @ 1/31/2007 9:53:14 PM