--======================>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> function Menu.MenuEdit(nAFMenuID, sAFMenuText, nAFIconID, bAFIsEnabled, bAFIsChecked, nAFMainMenuItem, bAFClearSubMenu) --[[>> << >> << >> <<<<<<<<<<<<<<<<<<<<<=======================================================================================================--]] Menu.Test(); if nAFMainMenuItem == 0 or nAFMainMenuItem > Table.Count(tAFMenu) then Application.ExitScript(); end if nAFMenuID == nil then nAFMenuID = tAFMenu[nAFMainMenuItem].ID; end if sAFMenuText == nil then sAFMenuText = tAFMenu[nAFMainMenuItem].Text; end if nAFIconID == nil then nAFIconID = tAFMenu[nAFMainMenuItem].IconID; end if bAFIsEnabled == nil then bAFIsEnabled = tAFMenu[nAFMainMenuItem].Enabled; end if bAFIsChecked == nil then bAFIsChecked = tAFMenu[nAFMainMenuItem].Checked; end if bAFClearSubMenu == true then tAFSubMenu = {}; else if tAFMenu[nAFMainMenuItem].SubMenu ~= nil then tAFSubMenu = tAFMenu[nAFMainMenuItem].SubMenu; end end tAFMenu[nAFMainMenuItem].ID = nAFMenuID; tAFMenu[nAFMainMenuItem].Text = sAFMenuText; tAFMenu[nAFMainMenuItem].IconID = nAFIconID; tAFMenu[nAFMainMenuItem].Enabled = bAFIsEnabled; tAFMenu[nAFMainMenuItem].Checked = bAFIsChecked; tAFMenu[nAFMainMenuItem].SubMenu = tAFSubMenu; Application.SetMenu(tAFMenu); -->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> end--|||||||||||||END FUNCTION||||||||||||||||| -->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>