思路:利用字典的特性,对筛选后的行列进行遍历。
Dim t As Table = Tables("询价表")
Dim zd As New Dictionary(Of String, Integer)
For Each r As Row In t.Rows
For i As Integer = 0 To 2
Dim c As String = t.Cols(i).name
If zd.ContainsKey(r(c)) = False Then '是否存在键1
zd.Add(r(c),1)
Else
zd(r(c)) = zd(r(c)) + 1
End If
Next
Next
For Each k As String In zd.Keys
If zd(k) > 1 Then
Output.Show(K & ":重复" & zd(k) & "次")
End If
Next
此主题相关图片如下:foxtable_by_flashman.png
