Foxtable(狐表)用户栏目专家坐堂 → 学生编号不是空值行数


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

主题:学生编号不是空值行数

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


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

Dim t As Table = e.Form.controls("Table1").Table
msgbox( t.Compute("count(学生编号)", "学生编号 is not null") )


 

http://www.foxtable.com/webhelp/scr/0548.htm

 

[此贴子已经被作者于2018/12/14 9:17:12编辑过]

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


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

Dim ary() As String = Functions.Execute("Xueqi")
Dim t As Table = e.Form.controls("Table1").Table
Dim nms() As String = {"学期","学生编号","缴费日期","缴费金额","收款人"}
For n As Integer = 1 To t.Rows.Count -1
    If t.Rows(n)("学生编号") = Nothing Then
        dr = DataTables("缴餐费").Find("学生编号 = '" & t.Rows(n)("学生编号") & "'")
        If dr Is Nothing Then
            dr =  DataTables("缴餐费").AddNew()
        End If
        For Each c As String In nms
            dr(c) = t.Rows(n)(c)
        Next
        dr.save
    End If
Next

 回到顶部