PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
..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).
    Note: Unlike ListSelect, this property allows you to directly find out whether the row corresponding to the specified subscript is selected or not.
  • Versions 16 and later
    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).
    New in version 16
    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).
    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 Name>[<Row Subscript>]..Selected
<Result>: Boolean
  • True if the element is selected,
  • False otherwise.
<Control name>: Character string (with or without quotes)
Name of control to use:
  • Name of List Box, ListView or Table control: used to find out whether the row is selected.
  • Versions 16 and later
    WINDEV Column name: used to find out whether the cell is selected. If the row subscript is not specified, allows you to find out whether the column is selected.
    New in version 16
    WINDEV Column name: used to find out whether the cell is selected. If the row subscript is not specified, allows you to find out whether the column is selected.
    WINDEV Column name: used to find out whether the cell is selected. If the row subscript is not specified, allows you to find out whether the column is selected.
<Row subscript>: Integer
Subscript of the row to use.
WINDEVJava

Selecting an element Hide the details

<Control Name>[<Row Subscript>]..Selected = <Selection>
<Control name>: Character string (with or without quotes)
Name of control to use:
  • Name of List Box, ListView or Table control: used to select a row or not.
  • Versions 16 and later
    WINDEV Column name: used to select a cell or not. If the row subscript is not specified, enables you to select or not the table column.
    New in version 16
    WINDEV Column name: used to select a cell or not. If the row subscript is not specified, enables you to select or not the table column.
    WINDEV Column name: used to select a cell or not. If the row subscript is not specified, enables you to select or not the table column.
<Row subscript>: Integer
Subscript 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

For a multi-selection List Box control, ..Selected is used to:
  • find out the selected rows.
  • select several rows.
For a single-selection List Box control, when a row is selected by ..Selected, the row that was previously selected is automatically de-selected.
WINDEVJava

Limits

..Selected only applies to the:
  • Table controls.
  • List Box controls.
  • ListView controls.
  • Versions 16 and later
    Table columns.
    New in version 16
    Table columns.
    Table columns.
  • Versions 16 and later
    Table cells.
    New in version 16
    Table cells.
    Table cells.
Java ..Selected only applies to the List Box controls.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment