PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
TableColumnSelectOccurrence (Function)
In French: TableColonneSelectOccurrence
Warning
From version 16 (56), this feature is kept for backward compatibility. We recommend that you use TableSelectCount.
Returns the number of selected columns found in a Table control.
Note: The Table control must allow the selection mode by column. This option can be configured in the "GUI" 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 Table control to use.
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 "GUI" tab of the description window of the Table control.
  • the "Cells" selection mode (multiple selection) in the "GUI" 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).
Components
WINDEVReports and Queries wd160obj.dll
Minimum required version
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment