pop up component alters data in table.
procedure TForm1.RadioGroup2Click(Sender: TObject);
begin
// copy code to field from popup to the table
//
with mytable1 do begin;
if (state dsedit) then Edit;
FieldByName('Name').asstring:= radiogroup2.items[radiogroup2.itemindex] ;
if modified then post;
end;
radiogroup2.hide;
end;
// the changes are visible in the grid when the popup hides,
// but the changes are not committed to the table
// when you stop and restart the program. suggestions?
crdbgrid
-
crownfield
- Posts: 5
- Joined: Sun 11 Oct 2009 01:07
Vanishing update
You are good. Found,fixed.
thanks...
thanks...
-
AndreyZ