RE: can't handle exceptions !?
"Gagnon, Jerry" <[email protected]> Fri, 2 Sep 2005 15:15:39 -0400
| Newsgroups | gmane.comp.lang.delphi.jedi |
|---|---|
| Message-ID | <[email protected]> |
While in the IDE you will get all exceptions. Run the EXE from outside of Delphi to see how the end-user would see it. -----Original Message----- From: soya protein [mailto:[email protected]] Sent: Friday, September 02, 2005 3:07 PM To: [email protected] Subject: [Delphi-JEDI] can't handle exceptions !? While i implemented exception handling in routines, i tried to test how it works, but whatever exception handling example i use, it won't work !? Here's the example for OnChange event code for Text control : begin try i := StrToInt (Edit1.Text); j := 2 div i; Label1.Caption := IntToStr (j); except on EZeroDivide do Label1.Caption := 'division by zero !'; end; end; After entering '0' in edit box, i still get standard exception dialog box. I also tried with "on E : Exception" without success. -- Best regards, soya Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/i7folB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Delphi-JEDI/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/