Foxtable(狐表)用户栏目专家坐堂 → 数据筛选


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

主题:数据筛选

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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2014/6/20 10:09:00 [显示全部帖子]

 Tables("YAHOO_data").Filter = "path = '家具:????座椅子'" '查询数据
If Tables("YAHOO_data").rows.count > 0 Then
    Dim A1_B1 As Integer = Tables("YAHOO_data").rows.count
    Dim A1_B2 As String = ""
    Dim A1_B3 As Integer = 0
    Dim A1_B4 As Integer
    For A1_B4 = 0 To A1_B1 - 1
        Dim temp As Integer = Rand.Next(A1_B1)
        If ("," & A1_B2).Contains("," & temp & ",") = False Then
            A1_B2 &= Tables("YAHOO_data").Rows(temp)("_Identify") & ","
            A1_B3 += 1
            If A1_B3 =  4 Then
                Exit For
            End If
        End If
    Next
    Tables("YAHOO_data").filter = "_Identify in (" & A1_B2.TrimEnd(",") & ")"
    Tables("网页生成器").Value(11,2) =""
    Dim A1_B5 As Integer = 0
    For Each rw As Row In Tables("YAHOO_data").Rows
        A1_B5+ =1
        Dim A1_B6 As Integer
        A1_B6 = rw("price")
        Tables("网页生成器").Value(11,2)+ = "<li class='fore" & A1_B5 & "'><b class='pi pix1'>新品</b><div class='p-img'><a target='_blank'href='http://teststr.shopping.yahoo.co.jp/tkmall/" &  rw("code").ToLower() & ".html'title='" & rw("name") & "'><img width='160'height='160'src=""http://shopping.geocities.jp/tkmall/img/" &  rw("code").ToLower() & ".jpg""alt='" & rw("name") & "'></a></div><div class='p-name'style='height: 3em;'><a href='http://teststr.shopping.yahoo.co.jp/tkmall/" &  rw("code").ToLower() & ".html'target='_blank'title='" & rw("name") & "'>" & rw("name") & "</a></div><div class='p-price'>TK価:<strong>¥" & Format(A1_B6,"#,###") & "</strong>円(税込)</div></li>"
    Next
    Tables("YAHOO_data").Filter = ""
Else
    msgbox("没有找到你需要的数据1")
End If

 回到顶部