D delphijob Unregistered / Unconfirmed GUEST, unregistred user! 2007-06-08 #1 如何判断一个字符串是否为一个数字(浮点型数字)
L LanHer Unregistered / Unconfirmed GUEST, unregistred user! 2007-06-08 #2 function chkNumeric(const strNumeric: String):Boolean; begin try StrToFloat(strNumeric); except Result:= False; end; end;
function chkNumeric(const strNumeric: String):Boolean; begin try StrToFloat(strNumeric); except Result:= False; end; end;
W Willson_Z Unregistered / Unconfirmed GUEST, unregistred user! 2007-06-08 #3 一个字符串中,如果除了数字和小数点,还有其他字符,那就不是数字喽!