SELECT LIST ITEM

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


SELECT LIST ITEM (list; itemPos)

ParameterTypeDescription
listListRefList reference number
itemPosNumberPosition of item in expanded list

Description

The command SELECT LIST ITEM selects the item whose position is passed in itemPos within the list whose reference number is passed in list.

The parameter itemPos is a position expressed using the current expanded/collapsed state of the list and its sublists. You pass a position value between 1 and the value returned by Count list items. If you pass a value outside this range, the first item is selected by default.

Examples

Given the list named hList, shown here in the User environment:

After the execution of this code:

   SELECT LIST ITEM(hList;Count list items(hList))
   REDRAW LIST(hList) ` Do NOT forget to call REDRAW LIST otherwise the list won't be updated

The last visible list item is selected:

See Also

SELECT LIST ITEM BY REFERENCE, Selected list item.


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