以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  二个网址无法比较  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=188846)

--  作者:ZJZK2018
--  发布时间:2023/10/24 9:18:00
--  二个网址无法比较
二个网址无法进行比较

For Each r As Row In Tables("网址汇总1").Rows
    Dim fdr As DataRow = DataTables("原始网址1").Find("公告网址 = \'" & r("公告网址") & "\'")
    If fdr IsNot Nothing Then
        r("家数") = "已有"
Else
        r("家数") = "BB"
    End If
Next

如下:
https://ggzy.zj.gov.cn/art/2023/10/19/art_1229682666_236582.html
https://ggzy.zj.gov.cn/art/2023/10/19/art_1229682666_236578.html
https://ggzy.zj.gov.cn/art/2023/10/19/art_1229682666_236541.html


--  作者:有点蓝
--  发布时间:2023/10/24 9:21:00
--  
数据有问题,比如有空格,回车符等看不见的字符
--  作者:ZJZK2018
--  发布时间:2023/10/24 9:34:00
--  
如何可以做到能比较??


--  作者:有点蓝
--  发布时间:2023/10/24 9:38:00
--  
字符串默认肯定都是可以比较的。如果不行只能是数据有问题
--  作者:cd_tdh
--  发布时间:2023/10/25 9:02:00
--  
测试确实没问题,估计就是你数据问题