Link to home
Start Free TrialLog in
Avatar of jaja2005
jaja2005Flag for Norway

asked on

Property with a pick list

I want to create a delphi object with a property which can be
one of the follow values:

(PENDING,DOWN,UP,SLEEPING....)

So that in my code i can do things like that:

Actor.Status := PENDING;
Node.Status := UP;

Should I define my const value and use them in a property?

Someone can show me how to do it, plz?
Ā 
ASKER CERTIFIED SOLUTION
Avatar of btframework
btframework
Flag of Belarus image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial