Home > Back-end >  According to the data after buttion didn't modify
According to the data after buttion didn't modify

Time:10-05

Readonly set to false, and open, the dbedit associated with it, all other Settings, dbedit can display data in the database, I want to by dbedit modify the values in the database, and I hope is to set up a button, button caption=modified, for example, click change will change the database data, how to set up, the hope in detail

CodePudding user response:

CodePudding user response:

Save the Post

CodePudding user response:

Save after editing is first,


Table. Edit;
.
Table. Post;

CodePudding user response:

Can be used to Query the control implementation, I also just contact the DelPhi

With Query3 do
Try
close;
SQL. The Clear;
SQL. The add (' update DNO0. DB set ename=: ename, dno=: dno where vid=: vid ');
Params. ParamByName (' vid). The Value:=Edit1. Text;
Params. ParamByName (' ename '). The Value:=Edit2. Text;
Params. ParamByName (' dno '). The Value:=StrToInt (Edit3. Text);
Execsql;
ShowMessage (' data updated successfully! ');
DataSource1. The DataSet:=Query5;
Query5. Active:=True;
Except,
end

CodePudding user response:

The cursor move will post, to button to do, also can use dbnavigator binding,
  • Related