我用stringgrid做输入界面,怎样根据第二列某个单元格输入以后,第五列相应的单元值也相应改变
with DataInputStringGrid do
if Col = 2 then
Cells[5,Row]:= floattostr(strtofloat(Cells[2,Row])*StrToFloat(Edit12.text));
当我在col=2中输入的时候出现 '' is not a valid floating point value 怎么解决阿??
with DataInputStringGrid do
if Col = 2 then
Cells[5,Row]:= floattostr(strtofloat(Cells[2,Row])*StrToFloat(Edit12.text));
当我在col=2中输入的时候出现 '' is not a valid floating point value 怎么解决阿??
解决方案 »
- delphi的if语句不理解
- 如何给Button加上单击事件?
- spcomm,我使用波特率1200,不能接受数据
- 那位仁兄知道SeSkin控件包何处下载?送分!
- 关于treeView和listView控件的使用问题
- 关于查询字段怎么都显示不完全?
- 怎样调用EXE文件?
- f7和f8有什么区别?
- 非固定的 Fields对象 ,DBgrid列对象 ,如何使用 fields 的 DisplayFormat 属性
- 怎样实现模糊查询??????
- 请问怎样把FOXMAIL和OUTLOOK的地址薄中的姓名,EMAIL等信息.
- 如何让远程数据库中的1张表导入到本地数据库中,数据库都是SQL SERVER 2000
if Col = 2 then
Cells[5,Row]:= floattostr(strtofloatdef(Cells[2,Row],0)*StrToFloat(Edit12.text));注意,要包含Math单元
with DataInputStringGrid do
if Trim(Cells[2,Row])='' then
Exit;