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.
Calculates the position of an item in the struct based on its name.
Syntax
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.
Remarks
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.