以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  自定义函数怎样使用参数传递表的?  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=144082)

--  作者:xongyijd
--  发布时间:2019/12/10 13:43:00
--  自定义函数怎样使用参数传递表的?
例子:
自定义函数名称 “采购”
Dim biao As DataTable = Args(0)
Dim jb As New SQLJoinTableBuilder("查询表1","采购明细")
jb.C
jb.AddTable("采购明细","关联列","采购","_Identify")
jb.AddCols("供应商","日期","启用","物料编号","单价")
biao =jb.Build(True)

引用

Dim zc As DataTable = Functions.Execute("采购")


[此贴子已经被作者于2019/12/10 14:33:23编辑过]

--  作者:有点蓝
--  发布时间:2019/12/10 14:13:00
--  
自定义函数名称 “采购”

Dim jb As New SQLJoinTableBuilder("查询表1","采购明细")
jb.C
jb.AddTable("采购明细","关联列","采购","_Identify")
jb.AddCols("供应商","日期","启用","物料编号","单价")
return jb.Build(True)