Membatasi Program Demo pada Delphi (Expired)

procedure TForm1.FormShow(Sender: TObject);
var
Tahun, Bulan, Tanggal : Integer;
begin
Tahun := 2007;
Bulan := 9;
Tanggal := 1;

if (Date >= EncodeDate(tahun, Bulan, Tanggal)) then
begin
ShowMessage(’Program Demo Sudah Selesai’);
Close;
end;
end;

http://maulaku.wordpress.com/category/tips-dan-trik/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s