Dim TvwCtl As WinForm.TreeView = Args(0) '要更新的Treeview控件
Dim TblName As String = Args(1) '数据来源表
Dim Columns As String = Args(2) '要构建Treeview的字段
If Tables(TblName).Rows.Count = 0 Then Return Nothing
TvwCtl.Form.StopRedraw
TvwCtl.BuildTree(Tables(TblName).DataTable,Columns)
Dim ArrColName() As String = Columns.Split("|")
For i As Integer = 0 To Ubound(ArrColName)
If Tables(TblName).DataTable.DataCols(ArrColName(i)).IsDate Then
Dim Dt As Date = Tables(TblName).DataTable.DataRows(0)(ArrColName(i))
If Dt.Hour = 0 And Dt.Minute = 0 And Dt.Minute = 0 Then
For Each Nd As WinForm.TreeNode In TvwCtl.AllNodes
If Nd.Level = i Then Nd.Text = Nd.Text.SubString(0,Nd.Text.IndexOf(" "))
Next
End If
End If
Next
TvwCtl.Nodes.Insert("显示所有行",0)
TvwCtl.Form.ResumeRedraw
老师,上面是内部函数
下面的报错是什么意思
此主题相关图片如下:图像 1.png