ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Table functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
<Table>.CellSelectOccurrence (Function)
In french: <Table>.CelluleSelectOccurrence
Warning
From version 16 (56F), this function is kept for backward compatibility. This function is replaced with <Table>.SelectCount.
Returns the number of selected cells found in a Table control.
Note The Table control must enable the cell selection mode. This option can be configured in the "GUI" tab of the Table control description.
Example
NbCelluleSel is int
Total is real
NumLigne is int
NumCol is int

NbCelluleSel = TABLE_TABLE1.CelluleSelectOccurrence()
FOR i = 1 TO NbCelluleSel
	NumLigne = TABLE_TABLE1.CelluleSelect(i, tcsLine)
	NumCol = TABLE_TABLE1.CelluleSelect(i, tcsColumn)
	Total = Total + TABLE_TABLE1[NumLigne, NumCol] 

END
Syntax
<Result> = <Table control>.CellSelectOccurrence()
<Result>: Integer
  • Number of selected cells,
  • 0 if the selection mode by cell is not selected for the Table control ("GUI" tab in the description window of control),
  • 1 if the Table control allows the selection of a single cell.
<Table control>: Control name
Name of the Table control to be used.
Remarks
Then, the list of cells can be retrieved by <Table>.CellSelect.
Component: wd300obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/20/2024

Send a report | Local help