以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  请问这样写代码对吗?  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=11517)

--  作者:jackshen888
--  发布时间:2011/8/1 5:57:00
--  请问这样写代码对吗?

Dim jb As New SQLJoinTableBuilder("查询表1","入库单")
jb.AddTable("入库单","入库单号","入库单明细","入库单号")
jb.AddCols("{入库单}.*")
Dim jd As New SQLJoinTableBuilder("查询表","销售订单")
jd.AddTable("销售订单","订单号","销售订单明细","订单号")
jd.AddCols("{入库单}.*")
Dim jf As New SQLJoinTableBuilder("查询表2","jb")
jf.AddTable("jb","订单号","jd","订单号")
jf.AddCols("{*}.*")

jf.build
MainTable = Tables("查询表1")

 

 

 

想请教一下,能不能用这样的格式,,,我的代码要求

Dim jb As new SQLJoinTableBuilder

 

Dim cb As new CrossTableBuilder

各用二次