以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  发布后独立的exe问题  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=83727)

--  作者:sf020cf
--  发布时间:2016/4/15 13:05:00
--  发布后独立的exe问题

表事件里:

If e.DataRow.Locked  = True Then
   
   
    If User.name <> "开发者" AndAlso UserName <> "管理员" AndAlso UserName <> "郑回珠" AndAlso UserName <> "刘光美" Then
       
       
        Messagebox.show("如需解锁行请找经理或者郑主管!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
       
       
        e.Cancel = True
       
       
    End If
   
    Else
        e.DataRow.Locked = False
   
End If

在开发版上,开发者/管理员/郑回珠/刘光美都可以解锁已锁定行,发布后在独立的EXE上升级完成后却不行

 


--  作者:大红袍
--  发布时间:2016/4/15 14:07:00
--  
 不可能。请加入msgbox弹出user.name的值看一看。