H
handsome1234
Unregistered / Unconfirmed
GUEST, unregistred user!
if KEY = #13 then
begin
if not (ACTIVECONTROL as DBGrid1) then
//[Error] Unit1.pas(137): Operator not applicable to this operand type
begin
Key := #0;
PERFORM(WM_NEXTDLGCTL, 0, 0);
end else
begin
if (ACTIVECONTROL as DBGrid1) then
//[Error] Unit1.pas(143): Operator not applicable to this operand type
begin
with DBGrid1(ACTIVECONTROL) do
begin
if SELECTEDINDEX < (FIELDCOUNT - 1) then SELECTEDINDEX := SELECTEDINDEX + 1 else
Sendmessage(Handle, wm_keydown, vk_Tab, 0);
end;
end;
end;
end;
begin
if not (ACTIVECONTROL as DBGrid1) then
//[Error] Unit1.pas(137): Operator not applicable to this operand type
begin
Key := #0;
PERFORM(WM_NEXTDLGCTL, 0, 0);
end else
begin
if (ACTIVECONTROL as DBGrid1) then
//[Error] Unit1.pas(143): Operator not applicable to this operand type
begin
with DBGrid1(ACTIVECONTROL) do
begin
if SELECTEDINDEX < (FIELDCOUNT - 1) then SELECTEDINDEX := SELECTEDINDEX + 1 else
Sendmessage(Handle, wm_keydown, vk_Tab, 0);
end;
end;
end;
end;