ValuesOfEnum Function

Action

Returns the list of values for an enumerated type.

Syntax

laValues = ValuesOfEnum(enum)
Variable Description
laValues A list containing the values. LIST OF ANYTYPE.
enum An enumeration for which to return the values.

Notes

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.

Example

[-] type COLOR is enum
	[ ] red
	[ ] brown
	[ ] green
	[ ] orange
	[ ] blue
	[ ] yellow
[-] testcase ValuesOfEnumExample()
	[ ] Print(ValuesOfEnum(COLOR))
	[ ] // Prints:
	[ ] // {red, brown, green, orange, blue, yellow}