读书人

请帮忙看一下为什么总报strtofloat 不

发布时间: 2012-01-14 20:02:35 作者: rapoo

请帮忙看一下为什么总报strtofloat 不是可以识别的函数
update tljt.dbo.f_pzdjdan set xs=xs+xs*strtofloat(edit1.text)


[解决办法]
strtofloat 这个是做什么。。。
[解决办法]

sql= 'update tljt.dbo.f_pzdjdan set xs=xs+xs* '+strtofloat(edit1.text)

[解决办法]
try

string strSQL= "update tljt.dbo.f_pzdjdan set xs=xs+xs* " + strtofloat(edit1.text)
[解决办法]
是在delphi中的吧
[解决办法]
应该是这样吧
"update tljt.dbo.f_pzdjdan set xs=xs+xs* " + strtofloat(edit1.text)
[解决办法]
hejiahuanle() ( ) 信誉:100 Blog 加为好友 2007-06-11 17:25:36 得分: 0


sql.Add( 'update tljt.dbo.f_pzdjdan set xs=xs+xs* '+strtofloat(edit1.Text) where bmmc= ' ' '+trim(combobox1.Text)+ ' ' ' and gz= ' ' '+trim(combobox3.Text)+ ' ' ' ');

还是报错


--------------
try

sql.Add( "update tljt.dbo.f_pzdjdan set xs=xs+xs* " + strtofloat(edit1.text) + " where bmmc= ' "+trim(combobox1.Text)+ " ' and gz= " '+trim(combobox3.Text)+ " ' ");

读书人网 >SQL Server

热点推荐