以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  判断关联表的列的值大于0怎么写  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=43922)

--  作者:haichao5585
--  发布时间:2013/12/18 22:32:00
--  判断关联表的列的值大于0怎么写
判断关联表的列的值大于0怎么写
--  作者:haichao5585
--  发布时间:2013/12/18 22:38:00
--  
是列的所有行。谢谢


--  作者:有点酸
--  发布时间:2013/12/18 23:21:00
--  

dim cnt as integer = Datatables("xxx").Compute("Count(_identify)", "某列 <= 0")

if cnt > 0 then

     messagebox.show("存在小于零 的")

end if


--  作者:haichao5585
--  发布时间:2013/12/19 12:29:00
--  
不行呀,表A关联表B

判断表A所关联的表表B的列的所有值是否大于0.


--  作者:Bin
--  发布时间:2013/12/19 14:09:00
--  

dim cnt as integer = tables("表A.表B").Compute("Count(_identify)", "某列 <= 0")

if cnt > 0 then

     messagebox.show("存在小于零 的")

end if