procedure TPMMtInfo.BtnModifyClick(Sender: TObject);
begin //修改
DBGridEh1.ReadOnly:=false;
table1.Edit;
end;
procedure TPMMtInfo.BtnDelClick(Sender: TObject);
begin //刪除
if application.MessageBox('Confirm Delete?','Delete Information',mb_okcancel+mb_defbutton1) =idok then
if table1.RecordCount>0 then
begin
table1.Delete;
end
else
application.MessageBox('No data to delete!','Information',mb_okcancel+mb_defbutton1);
end;