procedure TfmModifyBedfee.SetDate;
begin
try
fmorasession.OraSession.StartTransaction;
with qryInitdate do
begin
Close;
ParamByName('inhosregisterno').AsString := finhosregisterno;
ParamByName('BedNo').AsString := Trim(cbbBedNo.Text);
ExecSQL;;
end;
Temp_BaseInfo.Close;
Temp_BaseInfo.Open;
Temp_BaseInfo.Last;
Temp_BaseInfo.Append;
fmorasession.OraSession.Commit;
DBGridEh1.Col := 0;
DBGridEh1.SetFocus;
except
fmorasession.OraSession.Rollback;
Common1.ShowError('显示数据失败!');
end;
CurrAction := caBrowse;
end;每到DBGridEh1.SetFocus;就报错。为什么呢?
begin
try
fmorasession.OraSession.StartTransaction;
with qryInitdate do
begin
Close;
ParamByName('inhosregisterno').AsString := finhosregisterno;
ParamByName('BedNo').AsString := Trim(cbbBedNo.Text);
ExecSQL;;
end;
Temp_BaseInfo.Close;
Temp_BaseInfo.Open;
Temp_BaseInfo.Last;
Temp_BaseInfo.Append;
fmorasession.OraSession.Commit;
DBGridEh1.Col := 0;
DBGridEh1.SetFocus;
except
fmorasession.OraSession.Rollback;
Common1.ShowError('显示数据失败!');
end;
CurrAction := caBrowse;
end;每到DBGridEh1.SetFocus;就报错。为什么呢?
解决方案 »
- 有个棘手的问题,帮忙解决一下
- 有没有人用过reportbuilder做报表????
- 如何将pchar类型变量转换为pbyte类型变量
- combobox的问题
- 如何让dbedit的显示获得焦点的时候有边框,否则没有边框
- 在一个程序里的多个窗体如何同时使用串口控件?
- showmodal窗体的关闭、切换的实现?
- @@@@@@@@@@@2如何给LISTVIEW某个节点置为焦点 也就是选中状态 @@@@@@@@@@@@@@@
- 发布繁体中文版程序的问题:如何从简体中文翻译到繁体中文?两者的惯用语不一样
- 怎样把拼凑多个字段的内容?
- 使用TF1book控件的程序在别的机器上使用要怎么部署?
- 线程中使用SetTimer的问题
加上DBGridEh1.Col := 0;就报错了。
DBGridEh1本身就可以输入数据啊
谢谢你了,还有 DBGridEh1.Options := DBGridEh1.Options + [dgEditing];
后能够将鼠标定位到DBGridEh的格里了,但是按键盘的时候没有反应。