作者:admin 来源: 日期:2020/2/29 0:01:57 人气: 标签:
function checkstr1(const str: string): Boolean;varj:integer;beginResult :=false;for J:=1 to Length(str) dobeginif (str[J] in ['0'..'9']) thenbeginResult :=true;break;end;end;end;
procedure TForm16.Button1Click(Sender: TObject);beginif checkstr1(edit1.text) thenbegin caption:='t'; end else begin caption:='f'; end;end;