Examples: AlreadyExistsOnMenu()

The following example uses the AlreadyExistsOnMenu() function to verify whether the IG_Lead_Maintenance command exists on the CL_Sales_Cards command list (submenu).

if AlreadyExistsOnMenu("", DYNAMICS, 
	resourceid(form Command_Sales), 
	resourceid(command CL_Sales_Cards of form Command_Sales), 
	resourceid(form Command_IG_Sample),
	resourceid(command IG_Lead_Maintenance of form Command_IG_Sample), Seq) of form syMenuObj = true then

	{Do not need to add the menu items}
	AddMenuItems = false;
end if;

Documentation Feedback