D delphijob Unregistered / Unconfirmed GUEST, unregistred user! 2007-06-08 #1 delphi 中如何判断一个字符串是否为合法的浮点数
D delphijob Unregistered / Unconfirmed GUEST, unregistred user! 2007-06-08 #3 比如说,比较一个edit里的字符串是否为合法的浮点数字,用上面的TryStrToFloat 函数该如何呢?
S songrun Unregistered / Unconfirmed GUEST, unregistred user! 2007-06-08 #4 看看幫助吧!Converts a given string to a floating-point value with a boolean success code
D dbj Unregistered / Unconfirmed GUEST, unregistred user! 2007-06-08 #5 try strtofloat(str) except showmessage('不合法'); end;
K kite20020304 Unregistered / Unconfirmed GUEST, unregistred user! 2007-06-08 #7 if not TryStrToFloat(Edit1.Text) then 无效
D delphijob Unregistered / Unconfirmed GUEST, unregistred user! 2007-06-09 #8 为什么编译的时候老是提示TryStrToFloat函数有问题??