修改按钮click事件代码:
If User.IsRole("修改") Then
Tables("A表").Current.Locked = False
For Each c As WinForm.Control In e.Form.Controls
c.Enabled=True
Next
Dim fh As Boolean = ((Tables("A表").Current("b") = True) OrElse (Tables("A表").Current("c") = True))
If fh = True Then
Tables("A表").Current("d") = True
End If
e.Form.Controls("a").Visible = True
e.Form.Controls("a").Enabled = True
e.Form.Controls("b").Visible = False
e.Form.Controls("b").Enabled = False
e.Form.Controls("c").Visible = False
e.Form.Controls("c").Enabled = False
e.Form.Controls("e").Visible = False
e.Form.Controls("f").Select()
e.Form.Controls("g").Visible = False
e.Form.Controls("h").Enabled = False
e.Form.Controls("i").Visible = False
e.Form.Controls("j").Enabled = False
Else
MessageBox.Show("你无修改权限!")
End If
这样的click事件代码,在修改按钮点下之后并未做任何修改时为什么当前行号也会变成橙色?(此时红色代码部分的A表当前行b列、c列都不为真)
[此贴子已经被作者于2013-5-24 17:58:51编辑过]