enumKeys()

The function returns the list of keys that are available within the enumeration.

Synopsis

dyn_string enumKeys(string enumName)

Parameter

Parameter Description
enumName Name of the enumeration

Return value

Dyn_string with the keys of the enumeration.

Error

-

Description

The function returns the keys of the enumeration as a list in the order in which they have been added.

Example

enum enumLocal{ A, B, C };
main(mapping event)
{
  DebugN(enumKeys("enumLocal"));
}

Output of the script inside of the LogViewer:

WCCOAui1:[dyn_string 3 items
WCCOAui1:     1: "A"
WCCOAui1:     2: "B"
WCCOAui1:     3: "C"
WCCOAui1:]

Assignment

Misc. Functions

Availability

UI, CTRL