Is there a way to give an INITIAL value to an enum? - Forum - OpenEdge Development - Progress Community

Is there a way to give an INITIAL value to an enum?

 Forum

Is there a way to give an INITIAL value to an enum?

This question is answered

Hi,

Say I have the following enum

ENUM Condition:

DEFINE ENUM New
Used.
END ENUM.

And I have a class:

CLASS Product:

DEFINE PUBLIC PROPERTY Condition AS Condition /* INITIAL Condition:New */.
GET.
PRIVATE SET.

END CLASS.

The compiler doesn't seem to like this INITIAL statement.
Is this not supported (yet) for enums?

Verified Answer
All Replies