ListElementName (FPScript)
ListElementName (FPScript)
Determines the name of the list element with the specified index.
Syntax
ListElementName(List, Index)
The syntax of the ListElementName function consists of the following parts:
Teil |
Beschreibung |
---|---|
List |
The list from which the name of the element within is to be read. Permitted data structures are list. All data types are permitted. |
Index |
The index of the element in the list for which the name is to be determined. Negative indices are indexed from the end of the list. Permitted data structures are scalar value. All integral data types are permitted. If the argument is a list, then the first element in the list is taken. If this is also a list, then the process is repeated. |
Remarks
The elements in the list are numbered beginning with zero. The result is a string with the name of the indexed list elements. If no element name is saved for the list element in the list itself, but the list element has header information, the name is taken from this information. If the list element does not have a name, an empty string is passed.
Available in
FlexPro View, Standard, Professional, Developer Suite
Examples
ListElementName([1, 2], 0) |
Results in "Element". |
ListElementName([, 2], 1) |
Results in "". |
ListElementName([1, 2], -2) |
Results in "Element". |