vb 按钮 无效 代码

来源:百度知道 编辑:UC知道 时间:2024/05/16 07:17:30
代码:
if 语句1 then
command6.enabled=false
elseif 语句2 then
command6.enabled=ture
end if

上面代码有点问题 按钮1一直无效 即使 语句2成立时也一样- -
if text2.text="07009" or ** or ** or ** then
command6.enabled = true
end if
if text2.text="06003" or ** or ** or ** then
command6.enabled = false
end if

或者
if text2.text="07009" or ** or ** or ** then
command6.enabled = true
else
command6.enabled = false
end if

if 语句1 then command6.enabled=false
If 语句2 then command6.enabled=ture
如果不行就添加个Timer 空间,把那两行代码加到事件里

可能你的语句1和语句2有矛盾

不是应该是TRUE 而不是TURE 么