> Hi,
>
> I have developed a Menu using create menu. It is working fine. I want to block some users from accessing some items of menu.
>
> for example:
>
> Main Menu
> .....Pay Roll
> ..........Employee Master
> ..........Salary Preparation
> ..........Bonus Calculation
> ..........Attendance Entry
> ..........------------------
> ------
>
> There are two users. Admin & User. I want to block Bonus calculation to User. Is there any way? How I can use SKIP FOR in this condition?
>
>
> Prasant
see the command
SET SKIP OF MENU MenuBarName1 lExpression1
Enables or disables a menu, menu bar, menu title, or menu item for user-defined menus or the Microsoft Visual FoxPro system menu. There are several versions of the syntax.
for ex the Visual FoxPro Edit menu title EDIT can be disabled with this command:
SET SKIP OF PAD _MSM_EDIT OF _MSYSMENU .T.
PUT
SET SKIP OF PAD _MSM_EDIT OF _MSYSMENU .T.
to enable it
See also an example in samples/solution/solution.app----menus---disable or display menus...
Regards
Yousfi Benameur