窗体上命令按钮 Command1的事件过程如下,运行程序,第1次单击命令按钮Command1时,输出结果为 ,第 2次单击命令按钮Command1时,输出结果为 P rivate Sub Command1_Click() Dim total As Integer total = s(1)+s(2) Print total End Sub P rivate Function s(m As Integer) As Integer Static x As Integer For i =1 To m x=x+1 Next i S=x End Function