ユーザーが自分の「組み合わせ」を入力ボックスに入力するときに、少なくとも5文字でなければならないことを確認するにはどうすればよいですか?
これは私がこれまでに持っているコードです:
If (tboxStatus.Text) = "Combination Not Set" Or (tboxStatus.Text) = "UnLocked" Then
Combination = CInt(InputBox("Set the Combination First"))
tboxStatus.Text = "Locked"
ElseIf (tboxStatus.Text) = "Locked" Then
MsgBox("You must first UnLock the safe before trying to change the combination.")
End If