以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  清空内容  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=188055)

--  作者:rgbjwjb
--  发布时间:2023/8/30 8:26:00
--  清空内容
我想对数据表中选定单元格的内容清空,怎么实现?请指教!谢谢!
--  作者:有点蓝
--  发布时间:2023/8/30 9:00:00
--  
tables("A").current(tables("A").colsel) = nothing
--  作者:rgbjwjb
--  发布时间:2023/8/30 17:30:00
--  
执行后没有反应,还麻烦下老师,谢谢!
--  作者:有点蓝
--  发布时间:2023/8/30 17:39:00
--  
我测试没有问题,选中一个单元格,执行后就没有值了。

Dim t As Table = Tables("表A")
For i As Integer = t.TopPosition To t.BottomPosition
    For j As Integer = t.LeftCol To t.RightCol
        t.Rows(i)(j) = Nothing
    Next 
Next