|
|
|
|
|
- Last element
- Equivalence
- Miscellaneous
- Selecting an element in a List Box control that belongs to a Looper control
ListSelectPlus (Function) In french: ListeSelectPlus Selects one or more elements in a List Box, ListView or Combo Box control. The element is selected but it is not displayed if it is not visible. To make the selected element visible, use ListPosition. Reminder: The selected element corresponds to the current element onto which the selection bar is displayed. Remark: ListSelectPlus can be used on: - List Box controls based on a data file or populated programmatically,
- single-selection or multi-selection List Box controls.
// Select the element at index 7 in "LIST_CustomerList" ListSelectPlus(LIST_CustomerList, 7)
Syntax
ListSelectPlus(<List Box control> [, <Index 1> [... [, <Index N>]]])
<List Box control>: Control name Name of List Box (or Combo Box) control to use. If this parameter corresponds to an empty string (""), the element specified by its index is selected in the List Box control (or Combo Box) to which the current event belongs. <Index 1>: Optional integers Index of the first element to be selected. If no index is specified, all the elements in the specified List Box or Combo Box control are selected. ListSelectPlus has no effect if these parameters correspond to elements that are already selected. <Index N>: Optional integer Index of the Nth element to be selected. If no index is specified, all the elements in the specified List Box or Combo Box control are selected. ListSelectPlus has no effect if these parameters correspond to elements that are already selected. Remarks Last element To position on the last element of List Box control, use the following syntax:
ListSelectPlus(<List Box control>, <List Box control>.Count) or <List Box control> = <List Box control>.Count or <List Box control> = ListCount(<List Box control>) Equivalence For a single-selection List Box control without calling gStoredValue, the two following syntaxes are equivalent:
ListSelectPlus(<List Box control>, <Index>) and <List Box control> = <Index> Miscellaneous - To select an element in a Table control, use TableSelectPlus.
- ListSelectPlus can be used on a "Combo Box" table column.
- ListSelectMinus allows you to deselect the elements of a List Box or Combo Box control.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|