Keterangan program :
Dalam program ini kami menggunakan 4 edit.text, 4 label, 2 GroupBox, dan 1 button, cara pembuatan sangat mudah sekali sobat hanya mendesain program ini sesuai dengan gambar diatas atau keinginan sobat, langsung saja nih tak kasih listing lengkapnya ……….
Source Code ( listing Program)
unit Unit3;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
GroupBox1: TGroupBox;
Label1: TLabel;
Label2: TLabel;
edit1: TEdit;
Edit2: TEdit;
GroupBox2: TGroupBox;
Label3: TLabel;
Label4: TLabel;
Edit3: TEdit;
Edit4: TEdit;
Label5: TLabel;
Button1: TButton;
procedure Button1Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var
a,b: integer;
begin
a:= strtoint (edit1.Text);
b:= strtoint (edit2.Text);
edit3.Text := inttostr (b);
edit4.Text := inttostr (a);
end;
Selamat mencoba semoga bermanfaat
thanks berat brother
ReplyDelete