PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • Single-selection and multi-selection List Box control
  • Limits
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Selected (Property)
In french: Sélectionnée
Selected is used to:
  • WINDEV Find out whether a row is selected (in a List Box, ListView or Table control) and select a row (in a List Box, ListView or Table control).
    Remark: Unlike ListSelect, this property is used to directly find out whether the row that corresponds to the specified index is selected.
  • WINDEV Find out whether a column or a cell found in a Table control is selected and to select a column or a cell found in a Table control (for the Table controls with row or column selection).
Example
WINDEVJava
// Selects row 5 in the CITY List Box control
LIST_City[5].Selected = True
Syntax
WINDEVJava

Finding out whether an element is selected Hide the details

<Result> = <Control used>[<Row index>].Selected
<Result>: Boolean
  • True if the element is selected,
  • False otherwise.
<Control used>: Control name
Name of the control to be used:
  • Name of List Box, ListView or Table control: used to find out whether the row is selected.
  • WINDEV Column name: used to find out whether the cell is selected. If the row index is not specified, allows you to determine whether the column is selected.
<Row index>: Integer
Index of the row to use.
WINDEVJava

Selecting an element Hide the details

<Control used>[<Row index>].Selected = <Selection>
<Control used>: Control name
Name of the control to be used:
  • Name of List Box, ListView or Table control: used to select a row or not.
  • WINDEV Column name: used to select a cell or not. If the row index is not specified, enables you to select or deselect the table column.
<Row index>: Integer
Index of the row to use.
<Selection>: Boolean
  • True if the element must be selected,
  • False otherwise.
Remarks
WINDEVJava

Single-selection and multi-selection List Box control

In multi-selection List Box controls, the Selected property is used to:
  • find out the selected rows.
  • select several rows.
In single-selection List Box controls, when a row is selected with the Selected property, the previously selected row is automatically deselected.
WINDEVJava

Limits

The Selected property applies only to:
  • Table controls.
  • List Box controls.
  • ListView controls.
  • Table columns.
  • Table cells.
Java The Selected property applies only to List Box controls.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment