4,007
社区成员
发帖
与我相关
我的任务
分享n = inputbox("请输入数值:","名称")
If IsNumeric(n) Then
n = CInt(n)
.....
Else
MsgBox "空"
End If
n=CInt(inputbox("请输入数值:","名称"))
Select Case TRUE
Case n>=1 And n<=5
MsgBox "Hello World!"
Case n=7
MsgBox "Hello Software Testing!"
Case Else
MsgBox "Hello 51Testing!"
End Select
n=CINt(inputbox("请输入数值:","名称"))
Select Case n
Case 1,2,3,4,5
MsgBox "Hello World!"
Case 7
MsgBox "Hello Software Testing!"
Case Else
MsgBox "Hello 51Testing!"
End Select
n=inputbox("请输入数值:","名称")
If n>=1 And n<=5 Then
MsgBox "Hello World!"
ElseIf n=7 Then
MsgBox "Hello Software Testing!"
Else
MsgBox "Hello 51Testing!"
End If