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


  共有8590人关注过本帖平板打印复制链接

主题:数据表

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


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

搞不懂你什么逻辑

 

Dim names As New List(Of String)
Dim names2 As New List(Of String)
For i As Integer = 0 To Tables("开具piao据").Rows.Count-1
    names.Add(Tables("开具piao据").Rows(i)("收购凭证号"))
    names2.Add(Tables("开具piao据").Rows(i)("收购凭证号"))
Next
Dim n As Integer = 0
Dim a As Integer = 0
For Each name As String In names2
    Dim nn As String
    nn = name + 1
    nn = format(CInt(nn),"000000000")
    If Names.Contains(nn)= True Then
        n = n + 1
        Continue For
    Else
        Sheet1(5+a,3).Value = format(CInt(name),"000000000")
        Sheet1(5+a,1).Value = Sheet1(5,3).Value - n
        Sheet1(5+a,1).Value  = format(CInt(Sheet1(5+a,1).Value),"000000000")
        Sheet1(5+a,5).Value = DataTables("开具piao据").Compute("count([收购凭证号])", "收购凭证号 >= " & Sheet1(5,1).Value & " and 收购凭证号 <= " & Sheet1(5,3).Value & " and 作废 = false")
        Sheet1(5+a,6).Value = DataTables("开具piao据").Compute("count([收购凭证号])", "收购凭证号 >= " & Sheet1(5,1).Value & " and 收购凭证号 <= " & Sheet1(5,3).Value & " and 作废 = true")
        n = 0
        a = a + 1
    End If
    Names.Remove(name)
Next


 回到顶部
总数 74 1 2 3 4 5 6 7 8 下一页