Coding :
unit Unit1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Imaging.jpeg, ShellApi,
Vcl.ExtCtrls;
type
TForm1 = class(TForm)
Edit1: TEdit;
Edit2: TEdit;
Label1: TLabel;
Label2: TLabel;
Button1: TButton;
Image1: TImage;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
Label6: TLabel;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
if (Edit1.Text='Andryan') and (Edit2.Text='202308023') then
begin
ShellExecute(0, 'open', PChar('D:\BAMASIS POLTEKAD\POLTEKAD\POLTEKAD\TK 2\SEMESTER 3\DIRBINDIKJAR\KOM 8\Percobaan 10\Win32\Debug\Project_10.exe'), nil, nil, SW_SHOWNORMAL);
end
else
begin
ShowMessage('Indikasi Penyusup!');
Edit1.Text:='';
edit2.Text:='';
end;
end;
end.