第1个回答 推荐于2017-10-11
Private Sub Command_Click(Index As Integer)
'Index是控件属性。可以说是指定代号,就是那个括号里的数(Index)
'点下去之后看看这个command的代号(Index)是多少
Select Case Index '检查代号(Index)是多少
Case 0 '如果代号(Index)是0,
MsgBox "1号" '那就执行代号(Index)为0的按钮控件!(数组从0排起的)
Case 1
MsgBox "2号"
Case 2
MsgBox "3号"
Case 3
MsgBox "4号 "
Case 4
MsgBox "5号 "
……中间省略……
Case 9
MsgBox "10号 "
End Select '把正确的都选出来了,任务结束
End Sub本回答被提问者采纳