Foxtable(狐表)用户栏目专家坐堂 → 请教一个比对问题


  共有1989人关注过本帖平板打印复制链接

主题:请教一个比对问题

帅哥,在线噢!
y2287958
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:狐神 帖子:4650 积分:33912 威望:0 精华:0 注册:2008/8/31 22:44:00
  发帖心情 Post By:2019/4/9 10:26:00 [只看该作者]

Dim lst As new List(of String)
Dim dic As New Dictionary(Of String, String)
For Each dr As DataRow In DataTables("CC").DataRows
    If dr.IsNull("客户名称") = False AndAlso dr.IsNull("入档日期") = False
        If lst.Contains(dr("客户名称")) = False
            lst.Add(dr("客户名称") )
            Dim d As Date = dr("入档日期")
            Dim key As String = d.Year
            If dic.ContainsKey(key)
                dic(key) += "/" & dr("客户名称")
            Else
                dic.Add(key,dr("客户名称"))
            End If
        End If
    End If
Next
For Each k As String In dic.Keys
    Output.Show(K & ":" & dic(k))
Next

 回到顶部
总数 11 1 2 下一页