--
Dim TP As WinForm.TopicBar = e.Form.Controls("TopicBar1")
For Each FLL As WinForm.TopicPage In TP.Pages
FLL.Links.Clear
For Each ZWDJ As String In DataTables("词典").GetComboListString("名称","类别 = \'" & FLL.Name & "\'","_Identify").Split("|")
Dim KG As String = NEW String(" ",24 - ZWDJ.Length*2)
Dim EXP As String = CEXP("{0} = {1}",FLL.Name,ZWDJ)
Dim RS As String = DataTables("人员表").Compute("count(_Identify)",EXP)
\' MessageBox.Show(EXP)
\' MessageBox.Show("统计字段为:" & FLL.Name & " 值为:" & ZWDJ)
FLL.Links.Add(ZWDJ,ZWDJ & KG & RS)\' & KG & RS)
Next
Next
我后来改成这样的代码,显示信息的时候都是对的,但在执行的时候却遇到"***"不是统计表中的列!
![dvubb 图片点击可在新窗口打开查看](images/emot/em51.gif)