1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
procedure TGestionClien.MiseAJourClientClick(Sender: TObject);
var
RecordSet: _RecordSet;
nom, prenom, adresse, cp, ville, telephone, numeroclient, photface, photprofil : string;
begin
nom:= Edit1.Text;
prenom:= Edit2.Text;
adresse:= Edit3.Text;
cp:= Edit4.Text;
ville:= Edit5.Text;
telephone:=Edit6.Text;
numeroclient:=Num.Caption;
photface:=OpenPictureDialog1.FileName;
photprofil:=OpenPictureDialog2.FileName;
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.Add('UPDATE Client SET Nom = '+QuotedStr(nom)+' AND '+' Prénom = '+QuotedStr(prenom)+' AND Adresse = '+QuotedStr(adresse)+' AND '+' Ville = '+QuotedStr(ville)+' AND CP = '+QuotedStr(cp)+' AND '+' Telephone = '+QuotedStr(telephone)+' WHERE '+' IDClient = '+Num.Caption+' ');
ADOQuery1.ExecSQL;
end; |