jfaguiar Posted September 3, 2020 Report Share Posted September 3, 2020 Bom dia amigos. Alguém sabe se tem como capturar o nome da opção do menu (MENUITEM) selecionado ?, Preciso disso pra fazer um arquivo de log de acesso diário por usuário. MENU oMenu 2007 MENUITEM "Uti&litários" MENU MENUITEM "&Reorganização Geral da Base de Dados"; ACTION CHK_INDICES(.T.,.F.); MESSAGE "Cria os arquivos de índice de todas as tabelas do sistema" MENUITEM "&Reorganização Parcial da Base de Dados"; ACTION CHK_INDICES(.F.,.F.); MESSAGE "Cria os arquivos de índice inexistente" MENUITEM "&Reorganização Individual de Tabela"; ACTION IndexaIndividual(); MESSAGE "Cria os índices de uma tabela" ENDMENU ENDMENU Obrigado Quote Link to comment Share on other sites More sharing options...
kapiaba Posted September 3, 2020 Report Share Posted September 3, 2020 Passe um Parâmetro no ACTION( JoaoPegaTodas := "Mentira" ) Quote Link to comment Share on other sites More sharing options...
kapiaba Posted September 3, 2020 Report Share Posted September 3, 2020 Ou, Static oItMenu FUNCTION oItMenu := Array( 6 ) MENUITEM oItMenu[ 1 ] PROMPT "5 Menu" ACTION MENUITEM oItMenu[ 2 ] PROMPT "10 Menu" ACTION MENUITEM oItMenu[ 3 ] PROMPT "15 Menu" ACTION MENUITEM oItMenu[ 4 ] PROMPT "20 Menu" ACTION MENUITEM oItMenu[ 5 ] PROMPT "30 Menu" ACTION MENUITEM oItMenu[ 6 ] PROMPT "60 Menu" ACTION RETURN NIL Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.