在onkeypress中也if key=#13 then Key:=#9;
解决方案 »
- 关于循环打开webbrowser的问题
- 关于TList.Sort的问题
- 在DELPHI中如何调用C写的动态连接库
- 有关在Delphi中应用OpenGL载入Bmp位图
- 如果这样的情况建立索引有效果吗?
- 我是程序员,老板现在要我做系统分析,我该如何开始呢?
- 程序员大营的水池太浅.
- 如果有这样的SQL语句,select * from TableName ,如果没有返回值,则showmessage('没有返回值');请问各位superman,怎样确定返回值为NULL?
- 找李维的 Delphi5.x 分布式多层应用系统篇 下载地址
- 如何用SQL语言对一表的数据进行插入操作?
- 高分请问?
- 在DELPHI程序里使用热键
begin
if Key = #13 then if not (ActiveControl is TDBGrid) then begin
Key := #0;
Perform(WM_NEXTDLGCTL, 0, 0);
end
else if (ActiveControl is TDBGrid) then
with TDBGrid(ActiveControl) do
if selectedindex < (fieldcount -1) then
selectedindex := selectedindex +1
else
selectedindex := 0;end;
if dbgrid1.selectedindex<>adoquery1.fieldcount-1 then
dbgrid1.selectedindex:=dbgrid1.selectedindex+1
else
begin
adoquery1.next;
dbgrid1.selectedindex:=0;
end;