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
Warning
From version 16 (56F), this function is kept for backward compatibility. This function is replaced with <Table>.Select.
Returns the coordinates (row number and column number) of a cell in a Table control.
Remarks:
  • The Table control must allow the selection mode by cell. This option can be configured in the "GUI" tab of the Table control description.
  • To find out the number of selected cells, use <Table>.CellSelectOccurrence.
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>.CellSelect(<Index> , <Type of information>)
<Result>: Integer
  • Number of the selected row or column,
  • -1 if a problem occurred.
Remark: The cell selection mode must have been selected for the Table field ("HMI" tab in the field description).. Otherwise, <Result> is set to -1.
<Table control>: Control name
Name of the Table control to be used.
<Index>: Integer
Number of the selected column. If this index does not correspond to a selected column (e.g., index greater than the number of columns), <Result> is set to -1.
<Type of information>: Integer constant
Used to specify whether the result must be the row number or the column number:
tcsColumnUsed to retrieve the column number. The number of the first column is set to 1.
tcsLineUsed to retrieve the row number. The number of the first row is set to 1.
Component: wd300obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 10/16/2024

Send a report | Local help