Jump to content

Hata Çıktığında Kapattırma


Kral__
 Share

Recommended Posts

[code]nErr = Application.GetLastError();
nKont = ?
if nErr == nKont then
... --- hata çıktığında işlicek olan kod
else
... --- hata çıkmadığında işlicek olan kod
end[/code]
kod bu. isteğim şey herhangi bir hata çıktığında "hata çıkmadığında işlicek olan kod" yerdeki kodlarımın işlemsini istiyorum.bunu nasıl yapabilirim Edited by Kral__
Link to comment
Share on other sites

belirli bir hata var mı yoksa herhangi bir hata mı? herhangi bir hata ise nKont değişkenine ihtiyacın yok direk, aşağıdaki kodu kullanarak yapabilirsin. hatta bu kodu timera yazıp çalıştırırsan hata durumunu sürekli denetleyebilirsin. Ama sürekli denetleme bazı kodlarda sorun çıkarabilir.

error = Application.GetLastError();
if error then
Dialog.Message("Error", _tblErrorMessages[error], MB_OK, MB_ICONEXCLAMATION);
end

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...