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