本文整理自网络,侵删。
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;
相关阅读 >>
检查是否在Delphi xe7中启用或禁用了android蓝牙
更多相关阅读请进入《Delphi》频道 >>