I am having trouble finding anyone discussing this question. In a class module, say I have a property Color.
Class Stuff
Property Get Color() as string
Color = mlColor
End Property
Property Let Color(ByVal NewColor as String)
mlColor = NewColor
End Property
But when I am using this property, this is what I want:
Dim c as Stuff
Set c = New Stuff
c.Color = (Show a list of colors I have defined as constants somewhere)
I don't want a sub-class of color. It is similar to when you are doing a DoCmd.OpenQuery "QueryName", (here there is a dropdown of acViewDesign, acViewLayout, etc.)
Is this possible in user-defined classes? I really appreciate any help!
Class Stuff
Property Get Color() as string
Color = mlColor
End Property
Property Let Color(ByVal NewColor as String)
mlColor = NewColor
End Property
But when I am using this property, this is what I want:
Dim c as Stuff
Set c = New Stuff
c.Color = (Show a list of colors I have defined as constants somewhere)
I don't want a sub-class of color. It is similar to when you are doing a DoCmd.OpenQuery "QueryName", (here there is a dropdown of acViewDesign, acViewLayout, etc.)
Is this possible in user-defined classes? I really appreciate any help!