memo的當前值為'12.5',我要將其結果再計算為(12.5*4),
如何對其memo.Text屬性值進行轉換?直接用StrToFloat提示出錯啊…!
如何對其memo.Text屬性值進行轉換?直接用StrToFloat提示出錯啊…!
解决方案 »
- 数据库查询出现错误-" 至少有一个参数没被指定值"
- jinjazz大哥或liangpei2008大哥在吗,麻烦近来一下帮我解决一下这个在sun函数里不能用子查询的问题,万分感谢!
- 显示刷新太慢怎么办?
- 那位大虾来帮我一下呀,急死了!!!!!
- 请教关于PowerPoint的问题。
- 请问Delphi怎么操作Excel文件?100分求教!
- SQL语句关于case的用法。
- 请会BCB的朋友帮我把一段BCB代码转成DELPHI代码,好吗?(只有三行)。多谢!
- 不知道这算不算delphi的技术问题,至少我是要用delphi实现啊!
- 關於DBCtrlGrid控件, 請教各位高手!
- 请教Fastreport问题
- 请教!各位大虾门!!如何手动去设置视频的初始参数?
procedure GroupFooter2OnBeforePrint(Sender: TfrxComponent);
var
aa: string;
begin
Memo18.text := '12.6';
aa := Memo18.text;
Memo18.text := floatToStr(strtofloat(aa)*0.06);
//提示報錯:'is not a floating point value '12.6
end;
var
ff : real;
ff := strtofloat(trim(memo18.text)); //要使用Trim(memo.text)才能用strtofloat轉換字串