Struct.index Method [AX 2012]

Calculates the position of an item in the struct based on its name.

public int index(str fieldName)

Run On

Called

Parameters

fieldName
Type: str
The name of the item for which to return the position.

Return Value

Type: int
The position of the item.

The items in a struct are arranged in alphabetical order according to the item names. If there is no item with the name fieldName, 0 is returned.

Community Additions

ADD
Show: