请教一个VB的编程

来源:百度知道 编辑:UC知道 时间:2024/05/06 17:57:23
输入一个数字(1---7)用英语显示对应的星期数(即mon.tue.wed.thu.fri.sat.sun),要求用select case语句

Select Case InputBox("数字1-7", "请输入")
Case 1
Print "Mon"
Case 2
Print "Tue"
Case 3
Print "Wed"
Case 4
Print "Thu"
Case 5
Print "Fri"
Case 6
Print "Sat"
Case 7
Print "Sun"
Case Else
MsgBox "输入错误": Exit Sub
End Select

不会吧,这个程序也要在百度里问,随便找一本VB的教材一看,这样的程序本本书上都会有的.