home *** CD-ROM | disk | FTP | other *** search
- UNIT testmain;
-
- INTERFACE
-
- USES
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- StdCtrls;
-
- TYPE
- TForm1 = CLASS( TForm )
- Button1 : TButton;
- PROCEDURE FormCreate( Sender : TObject );
- PROCEDURE TuWas( Sender : TObject );
- PROCEDURE FormDestroy( Sender : TObject );
- PRIVATE
- { Private declarations }
- MyOutput : Text;
- PUBLIC
- { Public declarations }
- END;
-
- VAR
- Form1 : TForm1;
-
- IMPLEMENTATION
-
- USES
- DebugInterface;
-
- {$R *.DFM}
-
- PROCEDURE TForm1.FormCreate( Sender : TObject );
- BEGIN
- // Extra File Variables are available in professional mode only
- OpenAuxDebugOutput(MyOutput , 1); // Channel 0 .. 9 possible (0 = Main)
- END;
-
- PROCEDURE TForm1.TuWas( Sender : TObject );
- VAR
- j : Integer;
- mess : STRING;
- lineno : STRING;
- BEGIN
- WriteLn('Main Channel used (-M- = MainChannel)');
- WriteLn(DBChannel[1],'Minor Channel 1 used');
- // Next two lines only displayed in professional mode
- WriteLn(DBChannel[2],'Minor Channel 2 availlable in professional mode only');
- WriteLn(MyOutput, 'Auxilary Channel used, allocated is channel 1');
- Mess := '012345678|';
- Mess := Mess + Mess;
- Mess := Mess + Mess;
-
- FOR j := 0 TO 9 DO BEGIN
- Str( j + 1, lineno );
- WriteLn( lineno + '-' + mess );
- END;
- END;
-
- PROCEDURE TForm1.FormDestroy( Sender : TObject );
- BEGIN
- CloseAuxDebugOutput(MyOutput);
- END;
-
- END.
-
-