-
Class module
I know I can write:
Dim x(5) As New Class1
x(1).SomeProperty = "SomeText"
Is it possible make array of property? Than in code to write, for example:
x(1).SomeProperty(1) = "SomeText1"
x(1).SomeProperty(2) = "SomeText2"
x(1).SomeProperty(3) = "SomeText3"
x(1).SomeProperty(4) = "SomeText4"
x(1).SomeProperty(5) = "SomeText5"
I need to make class with array property. Any Idea?
-
yep, its as simple as -
Public Property Get test(Index As Long) As Boolean
and ...
Public Property Let test(Index As Long, newvalue As Boolean)