Fórum COMO FECHAR UM FORMULARIO DEPOIS DE EXIBIR UMA MENSAGEM DE ERRO ? #572609
13/12/2016
0
ShowMessage('Erro Ao Localizar: '+EREL.Text);
end;
O que eu coloco no if para fechar a tela depois dessa mensagem ser apresentada ?
Desdejá agradeço !
Rodrigo Oliveira
Curtir tópico
+ 0Post mais votado
13/12/2016
if not FileExists(EREL.Text) then
begin
ShowMessage('Erro Ao Localizar: ' + EREL.Text);
Close;
end;
Mateus Ribeiro
Gostei + 1
Mais Posts
13/12/2016
Raimundo Pereira
Para Finalizar aplicação >> application.terminate
Então basta colocar depois da mensagem
ShowMessage('Erro Ao Localizar: '+EREL.Text);
Gostei + 0
13/12/2016
Rodrigo Oliveira
Gostei + 0
13/12/2016
Rodrigo Oliveira
if FileExists(EREL.Text)=false then begin
ShowMessage('Erro Ao Localizar: '+EREL.Text);
PostMessage(Handle, WM_CLOSE, 0, 0);
exit;
end;fiz assim e deu certo
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)