Foxtable(狐表)用户栏目专家坐堂 → [求助]合并时如何去重?请教大家一下?谢谢


  共有2199人关注过本帖树形打印复制链接

主题:[求助]合并时如何去重?请教大家一下?谢谢

帅哥哟,离线,有人找我吗?
sunion
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:童狐 帖子:241 积分:2569 威望:0 精华:0 注册:2018/1/11 14:52:00
[求助]合并时如何去重?请教大家一下?谢谢  发帖心情 Post By:2019/3/31 14:48:00 [只看该作者]

合并时如何去重?请教大家一下?谢谢
Dim s1 As List(of String) = DataTables("学生互评表").SQLGetValues("标签一","[学号] = '" & xuehao.text & "' And [姓名] = '" & name.text & "' And [学年] = '" & xuen.value & "'","操作时间") 
Dim s2 As List(of String) = DataTables("学生互评表").SQLGetValues("标签二","[学号] = '" & xuehao.text & "' And [姓名] = '" & name.text & "' And [学年] = '" & xuen.value & "'","操作时间")
s1.AddRange(s2)

[此贴子已经被作者于2019/3/31 15:08:32编辑过]

 回到顶部
帅哥哟,离线,有人找我吗?
有点甜
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2019/4/1 11:06:00 [只看该作者]

Dim s1 As List(of String) = DataTables("学生互评表").SQLGetValues("标签一","[学号] = '" & xuehao.text & "' And [姓名] = '" & name.text & "' And [学年] = '" & xuen.value & "'","操作时间")
Dim s2 As List(of String) = DataTables("学生互评表").SQLGetValues("标签二","[学号] = '" & xuehao.text & "' And [姓名] = '" & name.text & "' And [学年] = '" & xuen.value & "'","操作时间")
For Each s As String In s2
    If s1.Contains(s) = False Then
        s1.Add(s)
    End If
Next

 回到顶部