James Tyler
3/13/2012 2:51:00 PM
Can someone tell me the best way to make it work ? And why it does not work.
Thanks
======== Module1 =========
Option Explicit
Public Type typeA
s1 As String
End Type
Sub Main()
Dim obj As New Class1
obj.t1.s1 = "NEW" ' ******** Why is this not working
MsgBox obj.t1.s1
End Sub
======== Class 1 =======
Option Explicit
Private m_t1 As typeA
Friend Property Get t1() As typeA
t1 = m_t1
End Property
Friend Property Let t1(v As typeA)
m_t1 = v
End Property
Private Sub Class_Initialize()
m_t1.s1 = "INIT"
End Sub