以文本方式查看主题

-  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=191004)

--  作者:jyh7081
--  发布时间:2024/3/20 10:15:00
--  [求助]这个动态列名怎么写
老师好!我想把  str   这个参数替换第二行代码中的 [客户],怎么写~
Dim str As string
Dim cnt As Integer = DataTables("订单").Compute("Count([客户])", "雇员 = \'EP01\' And 数量 > 500")

--  作者:有点蓝
--  发布时间:2024/3/20 10:20:00
--  
Dim cnt As Integer DataTables("订单").Compute("Count([" & str & "])"