Far out, this old vb6 app is killing me. How did I ever develop with this stuff before .NET.
I'm trying to creat a vb6 Class with a Property member being an Array of either UDT or another Class.
e.g.
I have a Class called Monitor which exposes a few properties:
- Resolution
- Rotation
- Name
- Width
- Height
In my main program module I have a class called SystemConfig which has a property called MonitorConfig, but previously it only facilitated one item. Because we now operate in a world of multiple monitors, I need this property to support more than one item.
Unfortunately vb6 doesn't give me List(Of T) so I need the next best thing. My first thought is to use an Array.
Here's my attempt:
Private m_MonitorConfig() As Monitor
Public Property Get MonitorConfig() As Monitor()
MonitorConfig = m_MonitorConfig
End Property
Public Property Let MonitorConfig(val() As Monitor)
m_MonitorConfig = val
End Property
How do I get the property to recognise an array value in and out of the MonitorConfig property?
thanks