以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  [求助]systemidle报错  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=109320)

--  作者:滴滴答
--  发布时间:2017/11/9 14:29:00
--  [求助]systemidle报错
窗口afterload事件编写后,第二次预览窗口会出现报错systemidle为引用到实例

Dim dt As DataTable
Dim b As New GroupTableBuilder("统计表1",DataTables("交易明细"))
b.Groups.AddDef("日期",DateGroupEnum.Year,"年")
b.Groups.AddDef("日期",DateGroupEnum.Month,"月")
b.Groups.AddDef("交易码") 
dt = b.Build(False) 

Dim trv As WinForm.TreeView = e.Form.Controls("TreeView1")
trv.BuildTree(dt, "年|月|交易码")
trv.StopRedraw
For Each nd As WinForm.TreeNode In trv.AllNodes
    Dim Year As Integer = nd.DataRow("年")
    Dim Month As Integer = nd.DataRow("月")
    Dim Product As String = nd.DataRow("交易码")
    Next
trv.ResumeRedraw

--  作者:有点甜
--  发布时间:2017/11/9 15:17:00
--  

Dim dt As DataTable
Dim b As New GroupTableBuilder("统计表1",DataTables("交易明细"))
b.Groups.AddDef("日期",DateGroupEnum.Year,"年")
b.Groups.AddDef("日期",DateGroupEnum.Month,"月")
b.Groups.AddDef("交易码")
b.Build
dt = DataTables("统计表1")