M MatchesGirl Unregistered / Unconfirmed GUEST, unregistred user! 2003-02-04 #1 很抱歉,应更正为由variant 转化为double
M MatchesGirl Unregistered / Unconfirmed GUEST, unregistred user! 2003-02-04 #3 很抱歉,应更正为由variant 转化为double
L lvxq Unregistered / Unconfirmed GUEST, unregistred user! 2003-02-04 #4 简单 var aa:variant; dblVal:double; flag:Integer; .... aa:='34567.01'; Val(aa,dblVal,flag); if flag<>0 then ShowMessage('Error') else ShowMessage(floatToStr(dblVal));
简单 var aa:variant; dblVal:double; flag:Integer; .... aa:='34567.01'; Val(aa,dblVal,flag); if flag<>0 then ShowMessage('Error') else ShowMessage(floatToStr(dblVal));