RE: can't handle exceptions !?
"Bowers, Michael P. ISD" <[email protected]> Fri, 2 Sep 2005 14:21:49 -0500
| Newsgroups | gmane.comp.lang.delphi.jedi |
|---|---|
| Message-ID | <[email protected]> |
Tools > Debugger Options > Language Exceptions, uncheck "Stop on Delphi Exceptions". ---- Michael Bowers Desktop Solutions R&D Sr. Applications Programmer Analyst Memorial Hermann Healthcare System [email protected] Phone: 713/448-6306 The more you tighten your grip, Microsoft, Pager: 713/605-8989 x21934 the more systems slip through your fingers -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of soya protein Sent: Friday, September 02, 2005 2: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/