[求助]事件中为什么不允许使用private定义变量?
我写了段代码Private Sub Command1_Click()
Static clickcounter As Integer
Private text As dtring
clickcounter = clickcounter + 1
text = clickcounter
MsgBox ("点击次数:" & text)
End Sub
到private的时候就编译不过
错误信息:Invalid attribute in Sub or Funtion
请帮忙解决,谢谢!