以下是引用lxhmax在2014-3-8 17:37:00的发言:请问下,下面这段代码为什么boolean不会运算?
Dim s As String
s = e.Form.Controls("ComboBox4").Value
Dim b As Boolean
If s = "现金" Then
b = False
ElseIf s = "协议付费" Then
b = True
ElseIf s = "支piao" Then
b = True
End If
e.Form.Controls("Textbox13").Enabled = b
如果你是想控制 Textbox13 的可用性,好像是把语句写反了