--======================>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> function Menu.SubMenuAdd(nAFMenuID, sAFMenuText, nAFIconID, bAFIsEnabled, bAFIsChecked, nAFTopMenuItem, nAFMenuItem) --[[>> << >> << >> <<<<<<<<<<<<<<<<<<<<<=====================================================================================================--]] Menu.Test(); if nAFTopMenuItem == 0 or nAFTopMenuItem > Table.Count(tAFMenu) then Application.ExitScript(); end if nAFMenuItem == 0 or not tAFMenu[nAFTopMenuItem].SubMenu[nAFMenuItem] then Application.ExitScript(); end if tAFMenu[nAFTopMenuItem].SubMenu[nAFMenuItem].SubMenu then nAFCurrentMenuItem = (Table.Count(tAFMenu[nAFTopMenuItem].SubMenu[nAFMenuItem].SubMenu) + 1); else tAFMenu[nAFTopMenuItem].SubMenu[nAFMenuItem].SubMenu = {}; nAFCurrentMenuItem = 1; end tAFMenu[nAFTopMenuItem].SubMenu[nAFMenuItem].SubMenu[nAFCurrentMenuItem] = {}; tAFMenu[nAFTopMenuItem].SubMenu[nAFMenuItem].SubMenu[nAFCurrentMenuItem].ID = nAFMenuID; tAFMenu[nAFTopMenuItem].SubMenu[nAFMenuItem].SubMenu[nAFCurrentMenuItem].Text = sAFMenuText; tAFMenu[nAFTopMenuItem].SubMenu[nAFMenuItem].SubMenu[nAFCurrentMenuItem].IconID = nAFIconID; tAFMenu[nAFTopMenuItem].SubMenu[nAFMenuItem].SubMenu[nAFCurrentMenuItem].Enabled = bAFIsEnabled; tAFMenu[nAFTopMenuItem].SubMenu[nAFMenuItem].SubMenu[nAFCurrentMenuItem].Checked = bAFIsChecked; Application.SetMenu(tAFMenu); -->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> end--|||||||||||||END FUNCTION||||||||||||||||| -->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>