以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  如何遍历一个表的几个列?  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=141852)

--  作者:rongping
--  发布时间:2019/10/12 14:17:00
--  如何遍历一个表的几个列?

如果一个表其中有5列是字符串列,我想遍历这5列当中的字符串,找到自己要找的那个字符串数据,请问该如何遍历?


--  作者:有点蓝
--  发布时间:2019/10/12 14:26:00
--  
Dim t As Table = Tables()
Dim cs() As String = {"A列","B","C","D","E"}
For Each c As String In cs
    For Each r As Row In t.rows
        If r(c) = "要找的那个字符串" Then
            msgbox("找到")
            Return
        End If
    Next
Next

--  作者:rongping
--  发布时间:2019/10/12 14:34:00
--  

xiexie