Kral__ Posted March 3, 2012 Share Posted March 3, 2012 (edited) [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 March 3, 2012 by Kral__ Quote Link to comment Share on other sites More sharing options...
blackman12 Posted March 3, 2012 Share Posted March 3, 2012 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 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.
Note: Your post will require moderator approval before it will be visible.