Friday, October 16, 2015

Embarcadero/Borland Delphi Event and Property Programming

Embarcadero/Borland Delphi Event and Property Programming


This is the easiest way to implement events and properties in Delphi.

note:
Nama Depan = First Name
Nama Belakang = Last Name
Gabung String = Join String
Nama Lengkap = Full Name
Kosongkan = clear/empty

Form Design:


Properties:

Components
Properties
Value
Form1
Caption
Program 1

Width
189

Height
385
Label1
Caption
Nama Depan
Label2
Caption
Nama Belakang
Label3
Caption
Nama Lengkap
Edit1
Text
Kosongkan
Edit2
Text
Kosongkan
Edit3
Text
Kosongkan
Button1
Caption
Gabung String



Delphi program:

procedure TForm1.Button1Click(Sender: TObject);
begin
  Edit3.Text := Edit1.Text +' '+ Edit2.Text;
  //use + operator to join string in edit1 with string in edit2
end;

Output:

ShadowOfBdg© - All rights reserved. 

No comments:

Post a Comment