Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the value of the enumeration item that is specified by an index.
Syntax
public int index2Value(int index)
Run On
Called
Parameters
- index
Type: int
The zero-based index of the enumeration in the AOT.
Return Value
Type: int
The value of the enumeration item that is specified by index.
Examples
The following example shows the retrieval of the value for items in an enumeration.
DictEnum de;
int i;
de = new DictEnum(enumName2Id("ActionType"));
for (i=0; i < de.values(); i++)
{
print int2str(i) + ", " + int2str(de.index2Value(i));
}