PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Use conditions
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
Returns the number of selected elements in a Table or TreeView Table control (especially for a multiselection control).
The number of selected elements can correspond to:
  • the number of selected rows (current rows onto which the selection bar is displayed).
  • Versions 16 and later
    the number of selected cells if the controls allows the selection mode by cell. This option can be configured in the "GUI" tab of control description.
    New in version 16
    the number of selected cells if the controls allows the selection mode by cell. This option can be configured in the "GUI" tab of control description.
    the number of selected cells if the controls allows the selection mode by cell. This option can be configured in the "GUI" tab of control description.
  • Versions 16 and later
    the number of selected columns if the control allows the selection mode by column. This option can be configured in the "GUI" tab of control description.
    New in version 16
    the number of selected columns if the control allows the selection mode by column. This option can be configured in the "GUI" tab of control description.
    the number of selected columns if the control allows the selection mode by column. This option can be configured in the "GUI" tab of control description.
Versions 20 and later
Android This function is now available for Android applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 20
Android This function is now available for Android applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Example
// Traces the content of selected rows
// (The Table control is a multiselection Table control)
i is int
NbSelected is int
NbSelected = TABLE_Product.SelectCount()
FOR i = 1 TO NbSelected
Trace("Selected row: " + ...
TABLE_Product[TABLE_Product.Select(i)])
END
// Deletes all selected rows from a Table control
// (The Table control is a multiselection Table control)
// TableDeleteSelect is available from version 18
i is int
NbSelection is int = TABLE_MyTable.SelectCount()
FOR i = NbSelection TO 1 STEP -1
TABLE_MyTable.Delete(TABLE_MyTable.Select(i))
END
Syntax
<Result> = <Table control>.SelectCount([<Information to return>])
<Result>: Integer
  • Number of selected rows in the specified control,
  • 0 if no row is selected.
This number can be greater than 1 for multiselection controls.
<Table control>: Control name
Name of control to use. This control can correspond to:
  • a Table control.
  • a TreeView Table control.
<Information to return>: Integer constant
Versions 16 and later
Type of information to return:
tsColumn<Result> will correspond to the number of selected columns.
tsCell<Result> will correspond to the number of selected cells.
tsRow
(Default value)
<Result> will correspond to the number of selected rows.
If this parameter is not specified, the function will return the number of selected rows.
New in version 16
Type of information to return:
tsColumn<Result> will correspond to the number of selected columns.
tsCell<Result> will correspond to the number of selected cells.
tsRow
(Default value)
<Result> will correspond to the number of selected rows.
If this parameter is not specified, the function will return the number of selected rows.
Type of information to return:
tsColumn<Result> will correspond to the number of selected columns.
tsCell<Result> will correspond to the number of selected cells.
tsRow
(Default value)
<Result> will correspond to the number of selected rows.
If this parameter is not specified, the function will return the number of selected rows.
AndroidiPhone/iPad This parameter is not available.
Remarks

Use conditions

<Table>.SelectCount can be used on:
  • a browsing or memory control.
  • a single-selection or multiselection control.
AndroidiPhone/iPad The TreeView Table control is not available.
Component : wd240obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment