jackjoker
asked on
Resume Error
Is there a code that can resume running the program regardless of errors? One that can just run over the errors.
Like "On Error Resume Next" in VB.
Like "On Error Resume Next" in VB.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
private
procedure AppException(Sender: TObject; E: Exception);
public
{ Public declarations }
end;
procedure TfMain.FormCreate(Sender: TObject);
begin
Application.OnException:=A
end;
procedure TfMain.AppException(Sender
begin
// if you want to skip the errors, comment the next line.
Application.ShowException(
end;