home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 November
/
Chip_2002-11_cd1.bin
/
zkuste
/
delphi
/
nastroje
/
DEBUGDEL.ZIP
/
testmain.pas
< prev
Wrap
Pascal/Delphi Source File
|
2002-04-07
|
2KB
|
68 lines
UNIT testmain;
INTERFACE
USES
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;
TYPE
TForm1 = CLASS( TForm )
Button1 : TButton;
PROCEDURE FormCreate( Sender : TObject );
PROCEDURE DisplaySomething( 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.DisplaySomething( Sender : TObject );
VAR
j : Integer;
mess : STRING;
lineno : STRING;
BEGIN
WriteLn('Main Channel used (-M- = MainChannel)');
WriteLn(DBChannel[1],'Minor Channel 1 used');
WriteLn(DBChannel[2],'Minor Channel 2 used');
// Next two lines can only be activated in professional mode !!!
// WriteLn(DBChannel[3],'Minor Channel 3 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
// Extra File Variables are available in professional mode only
// CloseAuxDebugOutput(MyOutput);
END;
END.