大家好,我是一个新手!有些问题向大家请教一下!
请问在模块中能不能定义 静态变量 为什么
Public ii As Integer Function a() As Integer Static i As Integer i = i + 1 a = i End Function Function b() As Integer ii = ii + 2 b = ii End Function
Private Sub Command1_Click() MsgBox a MsgBox b End Sub