edit 控件问题
delphi吧
全部回复
仅看楼主
level 1
TagST 楼主
procedure TForm1.Edit1KeyDown(Sender: TObject; var Key: Word; var KeyChar: Char;
Shift: TShiftState);
begin
if Key=#13 then
form1.Edit2.SetFocus;
end;
end.
[dcc64 Error] Unit1.pas(32): E2008 Incompatible types
Key=#13这句话错哪了??
2018年01月28日 11点01分 1
level 9
#13改成VK_RETURN试试
2018年01月28日 14点01分 2
吧务
level 14
也可以keychar=#13试试
2018年01月29日 01点01分 3
level 13
应该是 key=13
13是数字类型
#13是字符类型
2018年01月30日 08点01分 4
1