F fonder Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-18 #1 如何知道EDIT1.TEXT 是不是一个合法的实数或整数
W watter Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-18 #2 function isReal(ss:string):boolean; begin try StrToFloat(ss); Result:=True; except Result:=False; end; end; function isInt(ss:string):boolean; begin try StrToInt(ss); Result:=True; except Result:=False; end; end;
function isReal(ss:string):boolean; begin try StrToFloat(ss); Result:=True; except Result:=False; end; end; function isInt(ss:string):boolean; begin try StrToInt(ss); Result:=True; except Result:=False; end; end;