vb 按钮1里有case1,case2,case3,点击按钮2执行按钮1里的case2里的代码
1个回答
展开全部
Dim TempIndex As Integer
Private Sub Command1_Click()
Select Case TempIndex
Case 1
a% = 1
Case 2
a% = 2
Case 3
a% = 3
End Select
End Sub
Private Sub Command2_Click()
TempIndex = 2
Call Command1_Click
End Sub
Private Sub Command1_Click()
Select Case TempIndex
Case 1
a% = 1
Case 2
a% = 2
Case 3
a% = 3
End Select
End Sub
Private Sub Command2_Click()
TempIndex = 2
Call Command1_Click
End Sub
追问
根本无任何反应啊...
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询