Jmsilva Posted March 24, 2017 Report Share Posted March 24, 2017 Alguém sabe de algum "post" com os métodos das classes mysql e mariadb. Verifiquei algumas como ShowError() que exibe a msg. Preciso capturar a msg de erro e salvar em arquivo log. JMSilva FiveWin 17.01 é show Quote Link to comment Share on other sites More sharing options...
Ariston Santos Posted March 25, 2017 Report Share Posted March 25, 2017 Será que não funciona assim? TRY *... Seus comandos MYSQL CATCH oErr MsgAlert("Ocorreu um erro ao tentar executar o comando."+CRLF+CRLF+; "Favor verificar as configurações de banco de dados.","Erro") MemoWrit(".\errorlog\erro.txt", oErr:Description) *WAITRUN( GetEnv( "ComSpec" )+" /C NOTEPAD .\errorlog\erro.txt", 0) *PostQuitMessage( 0 ) *__QUIT() END Jmsilva 1 Quote Link to comment Share on other sites More sharing options...
Jmsilva Posted March 26, 2017 Author Report Share Posted March 26, 2017 Resolvido, na classe tem as variáveis nError e cError, quando ocorre o erro MySQL estas variáveis são alimentadas. 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.