VB怎么设置Label1.caption的输入字符长度?

Label1.Caption=Val(InputBox("请输入一个4位数字"))

Dim nub As String

nub = InputBox("请输入一个4位数字")

If Len(nub) > 4 Then

MsgBox "只能输入4位"

Else

Label1.Caption = Val(nub)

End If
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答