Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim mvarShared As Long
Public Property Let Shared(vData As Long)
mvarShared = vData
End Property
Public Function NewInstance() As TheClass
Dim NInstance As TheClass
Set NInstance = New TheClass
NInstance.Shared = mvarShared
Set NewInstance = NInstance
Set NInstance = Nothing
End Function
Private mvarShared As Long
Public Property Let Shared(vData As Long)
mvarShared = vData
End Property
Public Property Get Shared() As Long
Shared = mvarShared
End Property
[COLOR=black cyan]' Other Properties, Methods, Etc.[/color]
Dim myWrapper As New WrapperClass
Dim FirstInstance As myClass
Dim SecondInstance As myClass
myWrapper.Shared = 6789
Set FirstInstance = myWrapper.NewInstance
Set SecondInstance = myWrapper.NewInstance
Debug.Print FirstInstance.Shared
Debug.Print SecondInstance.Shared