SlideShare a Scribd company logo
1 of 3
Button tambah 
begin 
tambah:=true; 
with adoquery1 do 
begin 
sql.clear; 
active:=false; 
sql.text:='select NO_REK from NASABAH where NO_REK='+quotedstr(edit1.Text); 
active:=true; 
if (edit1.Text=fields[0].asstring) then 
tambah:=false; 
end; 
if (tambah=true) then 
begin 
with adoquery1 do 
begin 
active:=false; 
sql.text:='insert into 
NASABAH(NO_REK,PIN,BUKU_TAB,ATM)values('+quotedstr(edit1.text)+','+quotedstr(edit3.text)+','+ 
quotedstr(edit4.text)+','+quotedstr(edit5.text)+')'; 
execsql; 
end; 
end; 
with adoquery1 do 
begin 
sql.clear; 
active:=false; 
sql.text:='select * from NASABAH'; 
active:=true; 
end; 
messagedlg('Data berhasil disimpan',mtinformation,[mbok],0);
hapus 
if messagedlg('Anda yakin akan menghapus?',mtinformation,[mbyes,mbno],0)=mryes then 
adoquery1.Delete; 
messagedlg('Data sudah dihapus',mtinformation,[mbok],0) 
end; 
update 
adotable1.Edit; 
adotable1['No_REK']:=edit1.Text; 
adotable1['PIN']:=edit3.Text;; 
adotable1['BUKU_TAB']:=edit4.Text; 
ADOTABLE1['ATM']:=EDIT5.Text; 
ADOTABLE1.Post; 
end; 
keluar 
CLOSE 
Cari 
if adoquery1.Locate(combobox1.text,edit2.Text,[lopartialkey])=TRUE then 
showmessage('data ditemukan!') 
else 
showmessage('coba lagi!!!!'); 
end; 
cetak 1 
rvproject1.Execute; 
cetak 2 
quickrep1.preview; 
clear 
edit1.clear 
edit2.clear 
edit3.clear
Button tambah

More Related Content

What's hot

The Ring programming language version 1.10 book - Part 72 of 212
The Ring programming language version 1.10 book - Part 72 of 212The Ring programming language version 1.10 book - Part 72 of 212
The Ring programming language version 1.10 book - Part 72 of 212Mahmoud Samir Fayed
 
Timer control and Tool Strip C#
Timer control and Tool Strip C# Timer control and Tool Strip C#
Timer control and Tool Strip C# JJ Javier
 
Rx 101 - Tamir Dresher - Copenhagen .NET User Group
Rx 101  - Tamir Dresher - Copenhagen .NET User GroupRx 101  - Tamir Dresher - Copenhagen .NET User Group
Rx 101 - Tamir Dresher - Copenhagen .NET User GroupTamir Dresher
 
Scope.js prsentation
Scope.js prsentationScope.js prsentation
Scope.js prsentationAtishay Baid
 

What's hot (7)

The Ring programming language version 1.10 book - Part 72 of 212
The Ring programming language version 1.10 book - Part 72 of 212The Ring programming language version 1.10 book - Part 72 of 212
The Ring programming language version 1.10 book - Part 72 of 212
 
Ext J S Observable
Ext J S ObservableExt J S Observable
Ext J S Observable
 
Ext Js Events
Ext Js EventsExt Js Events
Ext Js Events
 
Timer control and Tool Strip C#
Timer control and Tool Strip C# Timer control and Tool Strip C#
Timer control and Tool Strip C#
 
Rx 101 - Tamir Dresher - Copenhagen .NET User Group
Rx 101  - Tamir Dresher - Copenhagen .NET User GroupRx 101  - Tamir Dresher - Copenhagen .NET User Group
Rx 101 - Tamir Dresher - Copenhagen .NET User Group
 
Scope.js prsentation
Scope.js prsentationScope.js prsentation
Scope.js prsentation
 
Code
CodeCode
Code
 

Viewers also liked

Verbos y cuantificadores, rodriguez avila
Verbos y cuantificadores, rodriguez avilaVerbos y cuantificadores, rodriguez avila
Verbos y cuantificadores, rodriguez avilaJussely Rodríguez
 
Ola linard prezentacja
Ola linard prezentacjaOla linard prezentacja
Ola linard prezentacjalidiadom
 
Elementos enfoques-fundamentos del cnb
Elementos enfoques-fundamentos del cnbElementos enfoques-fundamentos del cnb
Elementos enfoques-fundamentos del cnbRIGO LÓPEZ SI
 
Crew, Foia, Documents 011528 - 011724
Crew, Foia, Documents 011528 - 011724Crew, Foia, Documents 011528 - 011724
Crew, Foia, Documents 011528 - 011724Obama White House
 
Web Hosting Revendedor en Chile
Web Hosting Revendedor en ChileWeb Hosting Revendedor en Chile
Web Hosting Revendedor en ChileHosting y Dominio
 
Mi contexto de formacion
Mi contexto de formacionMi contexto de formacion
Mi contexto de formacionangie_med
 
Konsole Business Solutions - Brochure
Konsole Business Solutions - BrochureKonsole Business Solutions - Brochure
Konsole Business Solutions - BrochureKonsole Group
 

Viewers also liked (11)

Verbos y cuantificadores, rodriguez avila
Verbos y cuantificadores, rodriguez avilaVerbos y cuantificadores, rodriguez avila
Verbos y cuantificadores, rodriguez avila
 
Monografiita de lis
Monografiita de lisMonografiita de lis
Monografiita de lis
 
Por que debemos vacunarnos
Por que debemos vacunarnosPor que debemos vacunarnos
Por que debemos vacunarnos
 
Ola linard prezentacja
Ola linard prezentacjaOla linard prezentacja
Ola linard prezentacja
 
Nilda administración
Nilda   administraciónNilda   administración
Nilda administración
 
Elementos enfoques-fundamentos del cnb
Elementos enfoques-fundamentos del cnbElementos enfoques-fundamentos del cnb
Elementos enfoques-fundamentos del cnb
 
Images (4)
Images (4)Images (4)
Images (4)
 
Crew, Foia, Documents 011528 - 011724
Crew, Foia, Documents 011528 - 011724Crew, Foia, Documents 011528 - 011724
Crew, Foia, Documents 011528 - 011724
 
Web Hosting Revendedor en Chile
Web Hosting Revendedor en ChileWeb Hosting Revendedor en Chile
Web Hosting Revendedor en Chile
 
Mi contexto de formacion
Mi contexto de formacionMi contexto de formacion
Mi contexto de formacion
 
Konsole Business Solutions - Brochure
Konsole Business Solutions - BrochureKonsole Business Solutions - Brochure
Konsole Business Solutions - Brochure
 

Button tambah

  • 1. Button tambah begin tambah:=true; with adoquery1 do begin sql.clear; active:=false; sql.text:='select NO_REK from NASABAH where NO_REK='+quotedstr(edit1.Text); active:=true; if (edit1.Text=fields[0].asstring) then tambah:=false; end; if (tambah=true) then begin with adoquery1 do begin active:=false; sql.text:='insert into NASABAH(NO_REK,PIN,BUKU_TAB,ATM)values('+quotedstr(edit1.text)+','+quotedstr(edit3.text)+','+ quotedstr(edit4.text)+','+quotedstr(edit5.text)+')'; execsql; end; end; with adoquery1 do begin sql.clear; active:=false; sql.text:='select * from NASABAH'; active:=true; end; messagedlg('Data berhasil disimpan',mtinformation,[mbok],0);
  • 2. hapus if messagedlg('Anda yakin akan menghapus?',mtinformation,[mbyes,mbno],0)=mryes then adoquery1.Delete; messagedlg('Data sudah dihapus',mtinformation,[mbok],0) end; update adotable1.Edit; adotable1['No_REK']:=edit1.Text; adotable1['PIN']:=edit3.Text;; adotable1['BUKU_TAB']:=edit4.Text; ADOTABLE1['ATM']:=EDIT5.Text; ADOTABLE1.Post; end; keluar CLOSE Cari if adoquery1.Locate(combobox1.text,edit2.Text,[lopartialkey])=TRUE then showmessage('data ditemukan!') else showmessage('coba lagi!!!!'); end; cetak 1 rvproject1.Execute; cetak 2 quickrep1.preview; clear edit1.clear edit2.clear edit3.clear