Foxtable(狐表)用户栏目专家坐堂 → 隔行保存?


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

主题:隔行保存?

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


加好友 发短信
等级:七尾狐 帖子:1732 积分:11266 威望:0 精华:0 注册:2011/12/15 22:06:00
  发帖心情 Post By:2016/6/4 11:35:00 [显示全部帖子]

Dim tbl As Table = e.Form.Controls("Table3").Table
Dim r As Row
For intA as integer = tbl.rows.count-1 to 0 step -1
    dim r as row = tbl.rows(intA)
    Dim isnull As Boolean = True
    For Each c As Col In tbl.Cols
        If r.IsNull(c.name) = False  Then
            isNull = False
            Exit For
        End If
    Next
    If isnull Then
        r.Delete
    End If
Next
tbl.DataTable.Save
tbl.DataTable.RemoveFor("")

 回到顶部