List item position

4D - Documentation   Français   English   German   4th Dimension 2003, Command Theme List   4th Dimension 2003, Command Alphabetical List   4th Dimension 2003, Constant Theme List   Back   Previous   Next

version 6.0


List item position (list; itemRef) Number

ParameterTypeDescription
listListRefList reference number
itemRefNumberItem reference number
Function resultNumberItem position in expanded lists

Description

The command List item position returns the position of the item whose item reference number is passed in itemRef, within the list whose list reference number is passed in list.

The position is expressed relative to the top item of the main list, using the current expanded/collapsed state of the list and its sublist.

The result is therefore a number between 1 and the value returned by Count list items.

If the item is not visible because it is located in a collapsed list, List item position expands the appropriate list to make the item visible.

If the item does not exist, List item position returns 0.

See Also

Count list items, SELECT LIST ITEM BY REFERENCE.


4D - Documentation   Français   English   German   4th Dimension 2003, Command Theme List   4th Dimension 2003, Command Alphabetical List   4th Dimension 2003, Constant Theme List   Back   Previous   Next