以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  表达式中引用变量  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=148307)

--  作者:一笑
--  发布时间:2020/4/4 14:19:00
--  表达式中引用变量
以下代码正常:
Dim n As Integer=Tables("喊话监察").Compute("count(检查单编号)","符合PF3=1")

但表达式想用变量替代,报错(如下),求解,谢谢!
Dim txt As String = "符合PF3"
Dim n As Integer=Tables("喊话监察").Compute("count(检查单编号)","txt=1")

--  作者:sloyy
--  发布时间:2020/4/4 23:07:00
--  
你要多看看帮助,字符串是怎么组合的
Dim n As Integer=Tables("喊话监察").Compute("count(检查单编号)",txt &"=1")