Returns the list of values for an enumerated type.
laValues = ValuesOfEnum(enum)
Variable | Description |
---|---|
laValues | A list containing the values. LIST OF ANYTYPE. |
enum | An enumeration for which to return the values. |
ValuesOfEnum returns a list of enumerated values, each item of which corresponds to one of the values in the enumerated type. ValuesOfEnum returns the actual values of an enumerated type, not their integer equivalents.
[-] type COLOR is enum [ ] red [ ] brown [ ] green [ ] orange [ ] blue [ ] yellow [-] testcase ValuesOfEnumExample() [ ] Print(ValuesOfEnum(COLOR)) [ ] // Prints: [ ] // {red, brown, green, orange, blue, yellow}