can't handle exceptions !?
soya protein <[email protected]> Fri, 2 Sep 2005 21:07:09 +0200
| Newsgroups | gmane.comp.lang.delphi.jedi |
|---|---|
| Message-ID | <[email protected]> |
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 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/