Foxtable(狐表)用户栏目专家坐堂 → 删除


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

主题:删除

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:109690 积分:558154 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2016/11/21 17:35:00 [显示全部帖子]

窗口BeforeClose事件

DataTables("库存").DeleteFor("保存=false")

 回到顶部
帅哥,在线噢!
有点蓝
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:109690 积分:558154 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2016/11/21 17:53:00 [显示全部帖子]

if DataTables("库存").find("保存=false") isnot nothing then
  if MessageBox.Show("还有没保存,是不是删除?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question) = DialogResult.Yes

DataTables("库存").DeleteFor("保存=false")
end if
end if

 回到顶部
帅哥,在线噢!
有点蓝
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:109690 积分:558154 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2016/11/21 20:15:00 [显示全部帖子]

If DataTables("库存").find("保存=false") IsNot Nothing Then
    If MessageBox.Show("还有没保存,是不是删除?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question) = DialogResult.Yes
        DataTables("库存").DeleteFor("保存=false")
        e.Cancel = True
    End If
End If

 回到顶部