function StrToFloatDef(const S: string; const Default: Extended): Extended;
StrToCurr,StrToFloat 出错代码的行数在'' is not a valid floating point value提示的前面就 有呀。 例如: [Error] Unit1.pas(43): Undeclared identifier: 'Trasparent' 就是说在Unit1.pas的43行有错。 你双击这个提示就会到达错误所在的行。
出错代码的行数在'' is not a valid floating point value提示的前面就
有呀。
例如:
[Error] Unit1.pas(43): Undeclared identifier: 'Trasparent'
就是说在Unit1.pas的43行有错。 你双击这个提示就会到达错误所在的行。
但使用起来 异常出错有些问题
例如
StrToFloatDef(edit1.text,0);
缺省值为0 。StrToFloatDef在SysUtils可以找到类似的还有StrToIntDef,
StrToInt64Def,
StrToBoolDef
StrToCurrDef,
StrToDateDef,
StrToTimeDef,
StrToDateTimeDef
strtofloatdef
怎么分别?