EnumManager.<Enumeration name>.IndexOf

Syntax:

IndexOf(<EnumerationValue>)

Parameters:

<EnumerationValue> (required)

Type: EnumRef.
Reference to the enumeration value for which this method determines positioning. If the passed parameter is not a reference to the enumeration value, or if the value belongs to another enumeration, an exception is generated.

Returned value:

Type: Number.
Index of specified collection item. If none is found, returns -1.

Description:

Obtains the enumeration index in the enumeration list.

Availability:

Server, thick client, external connection, Mobile application (server).

    

1C:Enterprise Developer's Community