Advertisement
rikokurniawan

Program Fungsi String Pada Delphi (LEFT,MID,RIGHT)

Nov 29th, 2012
2,108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.55 KB | None | 0 0
  1. if Button1.Caption='Proses' then begin
  2.   if Length(Edit1.Text) <> 0 then begin
  3.     // Fungsi Left untuk mencari jabatan
  4.     Edit2.Text:=LeftStr(Edit1.Text,2);
  5.  
  6.     //Fungsi Untuk Mencari Bagian / Bidang seorang karyawan
  7.     Edit3.Text:=MidStr(Edit1.Text,4,2);
  8.  
  9.     // Fungsi Right untuk mencari Nomor Urut Karyawan
  10.     Edit4.Text:=RightStr(Edit1.Text,2);
  11.  
  12.     Button1.Caption:='Ulangi';
  13.   end; //end if
  14. end //end if button1
  15. else if Button1.Caption='Ulangi' then begin
  16.   bersihkan;
  17.   Edit1.SetFocus;
  18.  
  19.   Button1.Caption:='Proses';
  20. end; // end else if
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement