Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: tushar
  Where is tushar?
 Panaji
 India
 tushar
 To: Benny Thomas
  Where is Benny Thomas?
 Jeddah
 Saudi Arabia
 Benny Thomas
 Tags
Subject: RE: Deny Access in some Menu items
Thread ID: 200698 Message ID: 201097 # Views: 42 # Ratings: 0
Version: Visual FoxPro 9 Category: Menus
Date: Friday, October 31, 2008 11:41:06 AM         
   


> >
> > I normally have an object named oApp which will have all globally required values as properties. So the value of admin would be stored in _screen.oApp.Admin as a logical value and I would then do SKIP FOR NOT _screen.oApp.Admin
> >
> > You can also check the command SET SKIP OF
> >
> > Regards
> > Tushar
>
> Hi Tushar,
>
> I also use similar method but instead of oApp I use _screen.Admin, _screen.User etc. and then SKIP FOR NOT _screen.Amin. Do you foresee any serious problem with this way of approach?
> Benny

The reason I use oApp is that I check the assignment of the property. eg. Admin should normally be assigned in the login or logout form. So in the Assign event of Admin, I check the ASTACKINFO to make sure that LOGIN or LOGOUT is somewhere is the call stack. That way I am safe even if I give _screen.oApp.Admin=.T. somewhere by mistake.

Regards
Tushar



COMPLETE THREAD
Deny Access in some Menu items Posted by Prasant T @ 10/29/2008 1:49:34 PM
RE: Deny Access in some Menu items Posted by surinder singh @ 10/29/2008 1:52:52 PM
RE: Deny Access in some Menu items Posted by tushar @ 10/29/2008 1:54:31 PM
RE: Deny Access in some Menu items Posted by Benny Thomas @ 10/31/2008 10:04:30 AM
RE: Deny Access in some Menu items Posted by tushar @ 10/31/2008 11:41:06 AM
RE: Deny Access in some Menu items Posted by Yousfi Benameur @ 10/29/2008 2:09:58 PM
RE: Deny Access in some Menu items Posted by Jun Tangunan @ 10/30/2008 7:13:05 AM
RE: Deny Access in some Menu items Posted by Rafael Escambion @ 10/30/2008 7:47:23 AM
RE: Deny Access in some Menu items Posted by Stefan Wuebbe @ 10/30/2008 6:41:11 PM
RE: Deny Access in some Menu items Posted by Glenn Villar @ 10/31/2008 2:03:23 AM
RE: Deny Access in some Menu items Posted by Stefan Wuebbe @ 10/31/2008 8:54:37 AM
RE: Deny Access in some Menu items Posted by Marcia Akins @ 11/1/2008 12:40:31 PM
RE: Deny Access in some Menu items Posted by Prasant T @ 11/3/2008 8:21:35 AM
RE: Deny Access in some Menu items Posted by Biju Thomas @ 12/3/2008 4:38:27 AM