Re: Try..Except: How?



JamesR schrieb:

I thought if I had some text in the Edit1, then the except section
would execute.. this doesn't work. The program just crashes on the line
i := StrToInt(Edit1.Text);...

Perhaps you missed a "uses SysUtils;"? This unit must be included in a program, in order to make exception handling work.

DoDi
.