以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  选定表时,自动清空表的内容,不是删除表  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=92629)

--  作者:feixianzhi
--  发布时间:2016/11/9 8:08:00
--  选定表时,自动清空表的内容,不是删除表
选定表时,自动清空表的内容,不是删除表,怎么写编码?请各位老师帮忙。
--  作者:feixianzhi
--  发布时间:2016/11/9 8:43:00
--  
请各位老师帮忙呀。
--  作者:有点色
--  发布时间:2016/11/9 8:51:00
--  
Dim dt As DataTable = DataTables("表A")
For Each dr As DataRow In dt.datarows
    For Each dc As DataCol In dt.datacols
        If dc.Expression = "" Then
            dr(dc.name) = Nothing
        End If
    Next
Next

--  作者:feixianzhi
--  发布时间:2016/11/9 8:56:00
--  
谢谢有点色老师帮忙。