以文本方式查看主题

-  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=132150)

--  作者:巷弄太过弯曲
--  发布时间:2019/3/15 8:47:00
--  删除多行和单行的问题
请老师帮忙,请问 这个代码需要怎么判断 如果我选中一行,点击删除按钮 自动判断出删除当前行,如果我选中多行,自动判断出删除多行

CurrentTable.Current.Delete()


With Tables("主窗体_表WIFI查询资料")
    For i As Integer = .BottomPosition To .TopPosition Step -1
        .Rows(i).Delete()
    Next
End With

--  作者:有点甜
--  发布时间:2019/3/15 9:02:00
--  

直接写这个代码即可啊

 

With Tables("主窗体_表WIFI查询资料")
    For i As Integer = .BottomPosition To .TopPosition Step -1
        .Rows(i).Delete()
    Next
End With

--  作者:巷弄太过弯曲
--  发布时间:2019/3/15 10:06:00
--  
谢谢