version 6.0
SELECT LIST ITEM (list; itemPos)
| Parameter | Type | Description | |
| list | ListRef | List reference number | |
| itemPos | Number | Position 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.