Foxtable(狐表)用户栏目专家坐堂 → 求助,用户管理


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

主题:求助,用户管理

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


加好友 发短信
等级:超级版主 帖子:107440 积分:546479 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2019/7/23 22:29:00 [显示全部帖子]

Dim lst As WinForm.ListBox = e.Form.Controls("ListBox1")
If lst.SelectedIndex >=0 Then
    Dim UserName As String = lst.SelectedItem
if UserName  ="admin" then
msgbox("不允许删除")
return
end if
        _UserTable.SQLDeleteFor("[Name] = '" & UserName & "'")
        lst.Items.RemoveAt(lst.SelectedIndex)
        lst.Select()      
End If

 回到顶部