830
社区成员
发帖
与我相关
我的任务
分享
procedure TForm1.Edit1Change(Sender: TObject);
var stringleng:integer;
begin
stringleng:=edit1.GetTextLen;
edit2.Text:=inttostr(stringleng);
if stringleng>6 then
showmessage('超过了,不给了')
else
if stringleng <6 then
showmessage('还可以的');
showmessage('真的不给了');
end;
