PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
  • Single-selection and multiselection 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:
  • WINDEVWINDEV Mobile 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 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).
  • WEBDEV - Server codePHP Find out whether a tab menu option is selected and to select a tab menu option.
Versions 16 and later
PHP This property is now available for PHP sites.
New in version 16
PHP This property is now available for PHP sites.
PHP This property is now available for PHP sites.
Versions 17 and later
iPhone/iPad This property is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This property is now available for iPhone/iPad applications.
iPhone/iPad This property is now available for iPhone/iPad applications.
Example
WINDEVWINDEV MobileWindows MobileiPhone/iPadJava
// Selects row 5 in the CITY List Box control
LIST_City[5].Selected = True
WEBDEV - Server codePHP
// Modifies the selected menu option
OPT_MobileOption.Selected = True
Syntax
WINDEVWINDEV MobileWindows MobileiPhone/iPadJava

Finding out whether an element is selected Hide the details

Result> = <Control used>[<Row subscript>].Selected
<Result>: Boolean
  • True if the element is selected,
  • False otherwise.
<Control used>: Control name
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.
WINDEVWINDEV MobileWindows MobileiPhone/iPadJava

Selecting an element Hide the details

Control used>[<Row subscript>].Selected = <Selection
<Control used>: Control name
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.
WEBDEV - Server codePHPAjax

Finding out whether a menu option with tab is selected Hide the details

<Result> = <Option used>.Selected
<Result>: Boolean
  • True if the option is selected,
  • False otherwise.
<Option used>: Option name
Name of the menu option to use.
WEBDEV - Server codePHPAjax

Selecting a menu option with tab Hide the details

<Option used>.Selected = <Selection>
<Option used>: Option name
Name of the option to select.
<Selection>: Boolean
  • True if the option must be selected,
  • False otherwise.
Remarks
WINDEVWINDEV MobileWindows MobileiPhone/iPadJava

Single-selection and multiselection List Box control

In the case of an List Box control multiselection, the Property Selected allows to:
  • find out the selected rows.
  • select several rows.
In the case of a single List Box control selection, when an row is selected with the Property Selected, the previously selected row is automatically deselected.
iPhone/iPad The multi-selection List Box controls are not available.
WINDEVWINDEV MobileWindows MobileiPhone/iPadJava

Limits

The Property Selected applies only to:
  • 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.
iPhone/iPadJava The Property Selected applies to list fields only.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment