请教 如何判断一个字符串是不是都是有数字组成的(用delphi)?例如19482984是的,343jjlj4333j3就不是我想用ASC码来比较,不知道如何实现? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 function TryStrToFloat(const S: string; out Value: Extended): Boolean; overload;function TryStrToFloat(const S: string; out Value: Double): Boolean; overload;function TryStrToFloat(const S: string; out Value: Single): Boolean; overload;function TryStrToFloat(const S: string; out Value: Extended; const FormatSettings: TFormatSettings): Boolean; overload;function TryStrToFloat(const S: string; out Value: Double; const FormatSettings: TFormatSettings): Boolean; overload;function TryStrToFloat(const S: string; out Value: Single; const FormatSettings: TFormatSettings): Boolean; overload; 另外一个方法for i:=1 to length(s) dobegin if (s[i]>='9') or (s[i]<='0') then begin showmessage('不是'); exit; end;end;showmessage('是'); FastReport打印时打印机的切换问题? 关于LQ300K的双向打印 BDE如何实现SQL Server的Windows认证登录? DELPHI7怎么没有报表控件?听说是没有加载,要怎么样才能加载呀!急!!!!!! Delphi如何只用API函数实现语音聊天 VB的ActiveX,Delphi调用报错啊 新手求助关于D5修改注册表的问题! 请问怎样声明一个静态变量?急!! 我用 Flat 插件时,总提示类似入下的问题,我该怎么办? 我想获取,这个别的project的内容? 如何将fastreport用于asp 组件中 做过进销存或者类似软件的朋友都帮忙看看,理论问题~
;function TryStrToFloat(const S: string; out Value: Double): Boolean; overload;
function TryStrToFloat(const S: string; out Value: Single): Boolean; overload;function TryStrToFloat(const S: string; out Value: Extended; const FormatSettings: TFormatSettings): Boolean; overload;function TryStrToFloat(const S: string; out Value: Double; const FormatSettings: TFormatSettings): Boolean; overload;
function TryStrToFloat(const S: string; out Value: Single; const FormatSettings: TFormatSettings): Boolean; overload;
for i:=1 to length(s) do
begin
if (s[i]>='9') or (s[i]<='0') then
begin
showmessage('不是');
exit;
end;
end;
showmessage('是');