I have a set (4) of design created menu bars, numbered 1 -> 4, and each given a name.
I have 2 items on the first menu, on each menu bar, that I want to remove or display depending on user privileges. This works during login, and the (design access) menu item and separator are enabled for me, removed for other users. However, I also allow the users to log out/in over each other. 'Change User'. If I login, and then change user to a non-designer I want these 2 items to be removed from the menu. They will not delete. So.. I hit on the idea of looping though whatever processes are open (count tasks), and resetting the menu bar (Set Menu Bar). For (count tasks) $Reference:=Get menu bar reference(loop_counter) set menu bar($Reference;Loop_counter) DELETE MENU ITEM(1;9;$i) DELETE MENU ITEM(1;8;$i) end for with six processes open which have menu bars, 5 of them had no items removed; and 1 had the separator line (item 8) removed. Any ideas?? ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

