VB中复选框的值类型是什么
PublicnAsStringPrivateSubForm_Load()n=Val(Check1.Value)Ifn=1ThenText4.Locked=FalseEls...
Public n As String
Private Sub Form_Load()
n = Val(Check1.Value)
If n = 1 Then
Text4.Locked = False
Else
Text4.Locked = True
End If
End Sub
到底是字符串型还是布尔型啊,怎么用布尔型Text4还是Locked状态呢 展开
Private Sub Form_Load()
n = Val(Check1.Value)
If n = 1 Then
Text4.Locked = False
Else
Text4.Locked = True
End If
End Sub
到底是字符串型还是布尔型啊,怎么用布尔型Text4还是Locked状态呢 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询