ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Table functions
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
TableColumnSelectOccurrence (Function)
In french: TableColonneSelectOccurrence
Warning
From version 16 (56), this feature is kept for backward compatibility. It is recommended to use TableSelectCount.
Returns the number of selected columns found in a Table control.
Remark: The Table control must allow the selection mode by column. This option can be configured in the "UI" tab of the description window of control.
Example
NbColSelection is int
ColNum is int
 
NbColSelection = TableColumnSelectOccurrence(TABLE_TABLE1)
Trace("TableColumnSelectOccurrence = " + NbColSelection)
 
FOR i = 1 TO NbColSelection
ColNum = TableColumnSelect(TABLE_TABLE1,i)
Trace("The column " + ColNum + " is selected")
END
Syntax
<Result> = TableColumnSelectOccurrence(<Table control>)
<Result>: Integer
Number of selected columns.
<Table control>: Control name
Name of the Table control to be used.
Remarks
To allow the selection of a column, you must enable in the characteristics of Table control:
  • the "Columns" selection mode (simple or multiple selection) in the "UI" tab of the description window of the Table control.
  • the "Cells" selection mode (multiple selection) in the "UI" tab of the description window of the Table control.
The end user can select the columns by clicking the header of the column (like for a sort).
Component: wd160obj.dll
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help