if key = #13 then
if (activecontrol is TDBGridEh) then
begin
with tdbgrideh(activecontrol) do
if selectedindex < (fieldcount - 1) then
selectedindex := selectedindex + 1
else
begin
Table1.Append;
selectedindex := 0;
end;
end;
if key = #13 then
if (activecontrol is TDBGridEh) then
begin
with tdbgrideh(activecontrol) do
if selectedindex < (fieldcount - 1) then
selectedindex := selectedindex + 1
else
begin
dbgrideh1.DataSource.DataSet.Next;
if dbGridEh1.DataSource.DataSet.Eof then
Table1.Append;
selectedindex := 0;
end;
end;