home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Delphi 4 Bible
/
Delphi_4_Bible_Tom_Swan_IDG_Books_1998.iso
/
source
/
README
/
MAIN.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1998-04-04
|
663b
|
39 lines
unit Main;
interface
uses
Windows, SysUtils, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, Buttons;
type
TMainForm = class(TForm)
Memo1: TMemo;
BitBtn1: TBitBtn;
procedure FormActivate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
MainForm: TMainForm;
implementation
{$R *.DFM}
procedure TMainForm.FormActivate(Sender: TObject);
var
FileName: string;
begin
if ParamCount >= 1
then FileName := ParamStr(1)
else FileName := 'Readme.Txt';
Memo1.Lines.LoadFromFile(FileName);
Caption := FileName;
end;
end.