home *** CD-ROM | disk | FTP | other *** search
- unit Main;
-
- { Program copyright (c) 1995 by Charles Calvert }
- { Project Name: ALLEXCEP }
-
- interface
-
- uses
- SysUtils, WinTypes, WinProcs,
- Messages, Classes, Graphics,
- Controls, Forms, Dialogs,
- StdCtrls;
-
- type
- TForm1 = class(TForm)
- Button1: TButton;
- Edit1: TEdit;
- procedure Button1Click(Sender: TObject);
- private
- { Private declarations }
- public
- procedure Sam(Sender:TObject; E: Exception);
- { Public declarations }
- end;
-
- var
- Form1: TForm1;
-
- implementation
-
- {$R *.DFM}
-
- procedure TForm1.Sam(Sender:TObject; E: Exception);
- begin
- MessageBox(0, 'foo', nil, mb_ok);
- end;
-
- procedure TForm1.Button1Click(Sender: TObject);
- begin
- raise EInOutError.Create('hi');
- end;
-
- end.
-