ValueList.IndexOf

Syntax:

IndexOf(<Item>)

Parameters:

<Item> (required)

Type: ValueListItem.
Item in the list of values for which the index is to be determined.

Returned value:

Type: Number.
Index of a specified item in the list of values. If none is found, returns -1.

Description:

Obtains the index of an item in the list of values.

Availability:

Thin client, web-client, server, thick client, external connection, Mobile application (client), Mobile application (server).

Example:

LineNumber = List.IndexOf(CurrentListElement);

    

1C:Enterprise Developer's Community