test.dpr
Код: Выделить всё
program X;
{%File 'ModelSupport\Unit1\Unit1.txvpck'}
{%File 'ModelSupport\default.txvpck'}
uses
Forms,
Dialogs,
Controls,
Unit1 in 'Unit1.pas' {Form1},
{$R *.res}
var
Passwrd: String;
begin
if InputQuery(' Duncon','введи пароль', Passwrd) then
if Passwrd = 'k' then
begin
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end
else
MessageDlg('Неправильный пароль, приложение будет закрыто.', mtError, [mbok], 0);
end.