SpeedDemon
Programmer
Hi all, im trying to catch conversion errors in delph using the try..except method.. eg:
try
...
except
on EZeroDivide do HandleZeroDivide;
on EOverflow do HandleOverflow;
on EMathError do HandleMathError;
else
HandleAllOthers;
end;
It works and catches my events, however any code that goes into the else bit does not work. Im trying to convert a string into an integer.
Am I missing something here? Where 'HandleAllOthers' is, can i put delphi code here or only other events?!?! Please help.
Cheers
try
...
except
on EZeroDivide do HandleZeroDivide;
on EOverflow do HandleOverflow;
on EMathError do HandleMathError;
else
HandleAllOthers;
end;
It works and catches my events, however any code that goes into the else bit does not work. Im trying to convert a string into an integer.
Am I missing something here? Where 'HandleAllOthers' is, can i put delphi code here or only other events?!?! Please help.
Cheers