Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- Developper : Riko Software
- Programmer : Jean Riko Kurniawan Putra, S.Kom
- FB : https://www.facebook.com/Jean.Riko.K.P
- Blog : djeansoftware.blogspot.sg
- PIN BB : 54B5758E
- }
- unit U1;
- interface
- uses
- Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
- Dialogs, StdCtrls;
- type
- TFBersih = class(TForm)
- Edit1: TEdit;
- Edit2: TEdit;
- Edit3: TEdit;
- Edit4: TEdit;
- Edit5: TEdit;
- Edit6: TEdit;
- Edit7: TEdit;
- Edit8: TEdit;
- Edit9: TEdit;
- Edit10: TEdit;
- Button1: TButton;
- Label1: TLabel;
- Label2: TLabel;
- procedure FormShow(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
- var
- FBersih: TFBersih;
- implementation
- {$R *.dfm}
- procedure TFBersih.FormShow(Sender: TObject);
- var
- i : Integer;
- begin
- //Bersihkan Seluruh Editbox yang ada
- for i := 0 to ComponentCount-1 do begin
- if( Components[ i ] is TEdit )then begin
- (Components[ i ] as TEdit).Clear;
- end;
- end;
- Edit1.SetFocus;
- end;
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement