Rss & SiteMap
Foxtable(狐表) http://www.foxtable.com
最近用到user.type,发现返回判断UserTypeEnum.Administrator或者UserTypeEnum.Developer老是不成功,输出一下,发现是0、1、2的返回值,请问是我用法错误还是返回值改变了还是什么的。。。求解答。。。
PS:不才是照搬的帮助的代码,弄了半天,头大了。。。
If User.Type <> UserTypeEnum.Administrator and User.Type <> UserTypeEnum.Developer Then
Dim aa As String = user.Type
MessageBox.Show(aa,user.name,MessageBoxButtons.OK)
For Each dt As DataTable In DataTables
dt.AllowEdit = False
Next
End If
奇怪,我开发者进去还是锁了表。
MMD,,,,,我重启一遍就又正常了,,,,见鬼了。。。。。
谢谢各位帮忙~~~~~
不另开新帖了,继续问一个。。。
我用上面遍历所有表然后锁定,跟这个DataTables.AllowEdit = False 的效果是一样的吗。
然后我在要单独打开一个表的锁定的情况下,是不是不能用这句代码。