Public Property Get Tabs() As variant
Tabs= m_Tabs
End Property
Public Property Let Tabs(New_Tabs As variant)
m_Tabs= New_Tabs
for i=1 to m_tabs
on error resume next
load command(i)
command(i).visible=true
……
next '这里只是写出Tabs变大加载的代码,还有变小时卸载的就不罗嗦了
End Property
Private m_Data() As String
Public Property Get a() As String()
a = m_Data
End Property
Public Property Let a(value() As String)
m_Data = value
End Property
这是控件属性数组的写法,希望对你有用
Public Property Get b(ByVal Index As Long) As String
b = m_Data(Index)
End Property
Public Property Let b(ByVal Index As Long, value As String)
m_Data(Index) = value
End Property