Foxtable(狐表)用户栏目专家坐堂 → 如何在实现Label中的显示,谢谢!


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

主题:如何在实现Label中的显示,谢谢!

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


加好友 发短信
等级:狐神 帖子:4648 积分:33890 威望:0 精华:0 注册:2008/8/31 22:44:00
  发帖心情 Post By:2014/7/13 0:23:00 [显示全部帖子]

'''
Dim ts As List(of String)
ts = DataTables("表A").GetValues("第一列")
Dim t2s As List(of String)
t2s = DataTables("表B").GetValues("第二列")
Dim qq As String
For Each t As String In ts
    For a As Integer = 0 To t2s.Count-1
        If t = t2s(a) Then
            Dim dr As DataRow
            dr = DataTables("表B").Find("第二列 = '" & t2s(a) & "'")
            Dim r As Integer
            r = Tables("表B").FindRow(dr)
            If r>=0 Then
                Tables("表B").Position = r
            End If
            Output.Show("Find  " & t & "-" &Tables("表B").Rows(r)("第一列"))
            qq += "Find  " & t & "-" &Tables("表B").Rows(r)("第一列") & vbcrlf
        End If
    Next
Next
Dim l As WinForm.Label = Forms("窗口1").Controls("Label1")
l.Text = qq

 回到顶部