M
millay
Unregistered / Unconfirmed
GUEST, unregistred user!
代码如下:
//修改阅读标志位
Timer1.Enabled := False;
S := DBGrid1.SelectedField.DisplayName;
S := 'where ' + S + ' =' + DBGrid1.SelectedField.AsString;
With ADOQuery1 do
begin
Close;
With SQL do
begin
Clear;
Add('Update r_application set flag = 1 ');
Add(S);
end;
ExecSQL;
end;
Timer1.Enabled := True;
//修改阅读标志位
Timer1.Enabled := False;
S := DBGrid1.SelectedField.DisplayName;
S := 'where ' + S + ' =' + DBGrid1.SelectedField.AsString;
With ADOQuery1 do
begin
Close;
With SQL do
begin
Clear;
Add('Update r_application set flag = 1 ');
Add(S);
end;
ExecSQL;
end;
Timer1.Enabled := True;