I can’t seem to correctly use a property in a class. Here is my code:
![]()
Public Property Get StartingLocation() As Integer StartingLocation = pStartingLocation End Property Public Property Let StartingLocation(Value As Integer) pStartingLocation = Value End Property
Next my module:
The messagebox displays “0”![]()
Dim myclass As Class1 Set myclass = New Class1 myclass.StartingLocation = 10 MsgBox (myclass.StartingLocation)
What the heck?
Thanks.
Bookmarks