以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  长代码问题报错  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=196517)

--  作者:lgz518
--  发布时间:2025/5/8 14:11:00
--  长代码问题报错
Dim res As Integer = "db.ExecuteNonQuery(SqGl, HySql.ParameterPair.GetPair("第1列", "123"), " & 
 "HySql.ParameterPair.GetPair("第2列", "zbc"),HySql.ParameterPair.GetPair("第3列", "zbc"), " & 
 "HySql.ParameterPair.GetPair("第4列", "zbc"),HySql.ParameterPair.GetPair("第5列", "zbc")).Table(0)   

Dim res As Integer = db.ExecuteNonQuery(SqGl, HySql.ParameterPair.GetPair("第1列", "123"),  _
 HySql.ParameterPair.GetPair("第2列", "zbc"),HySql.ParameterPair.GetPair("第3列", "zbc"),  _ 
 HySql.ParameterPair.GetPair("第4列", "zbc"),HySql.ParameterPair.GetPair("第5列", "zbc")).Table(0)  

上面二种写法都报错,如何改?

--  作者:有点蓝
--  发布时间:2025/5/8 14:40:00
--  
http://www.foxtable.com/webhelp/topics/2489.htm
--  作者:lgz518
--  发布时间:2025/5/8 16:12:00
--  
是按上面,但报错,如何改?
Dim res As Integer = "db.ExecuteNonQuery(SqGl, HySql.ParameterPair.GetPair("第1列", "123"), " & 
 "HySql.ParameterPair.GetPair("第2列", "zbc"),HySql.ParameterPair.GetPair("第3列", "zbc"), " & 
 "HySql.ParameterPair.GetPair("第4列", "zbc"),HySql.ParameterPair.GetPair("第5列", "zbc")).Table(0)   "

--  作者:有点蓝
--  发布时间:2025/5/8 16:42:00
--  
1楼第二种用法,我测试没有问题