当前位置:编程学习 > Delphi >>

delphi编程问题

procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char); begin if not key in ['0'..'9'] then key:=char(0); end;大家看这段程序有什么问题?编译老是不过,提示Operator not applicable to this operand type,错误光标在in后面
追问:唉,没有错啊,但是这提示也太不靠谱了吧,害我查了半天
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,