ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • 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 is used to:
  • AndroidiPhone/iPad Select, or determine if a row is selected in a List, 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.
Example
AndroidiPhone/iPad
// Selects row 5 in the CITY List Box control
LIST_City[5].Selected = True
Syntax
AndroidiPhone/iPad

Determining if 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.
<Row index>: Integer
Index of the row to use.
AndroidiPhone/iPad

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.
<Row index>: Integer
Index of the row to use.
<Selection>: Boolean
  • True if the element must be selected,
  • False otherwise.
Remarks
AndroidiPhone/iPad

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.
iPhone/iPad The multi-selection List Box controls are not available.
AndroidiPhone/iPad

Limits

The Selected property applies only to:
  • Table controls.
  • List Box controls.
  • ListView controls.
  • Table columns.
  • Table cells.
AndroidiPhone/iPad The Selected property applies only to List Box controls.
Minimum version required
  • Version 9
This page is also available for…
Comments
Pegar ID
Prezados

Para pegar um registro id de um browser table grid tem 2 formas:

Crie uma var global da janela:
GNID is 8-byte int = 0


A) Em Code evento
SELECT ROW

GNID = TableNameGrid.COL_myID



B) Em Code evento
SELECT ROW

Nx is int = Tableinfoxy(TableNameGrid, tiLineNumber, MouseXPos(), MouseYPos())

If nx > 0

GNID = TableNameGrid[nx].COL_myID

End
Boller
16 Apr. 2024

Last update: 07/08/2024

Send a report | Local help