Public Enum MyCoolListOfOptions > [_min] = 0 'This is a hidden value > Left = 0 > Right = 1 > Up = 2 > Down = 3 > [_max] = 3 'This is a hidden value >End Enum > >Private m_eStyle As MyCoolListOfOptions ' establish a mod level var > >Public Property Get Style() As MyCoolListOfOptions > Style = m_eStyle ' If asked be able to reply >End Property > >Public Property Let Style(ByVal eStyle As MyCoolListOfOptions) > Debug.Print eStyle ' For testing > if eStyle >= [_min] and eStyle <= [_max] then > m_eStyle = eStyle ' If told be able to assign > PropertyChanged "Style" ' Update property > else > err.raise 1,"Invalid value" > endif >End Property
"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams