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
TableCellSelect (Function)
In French: TableCelluleSelect
Warning
From version 16 (56F), this function is kept for backward compatibility. This function is replaced by TableSelect.
Returns the coordinates (row number and column number) of a cell in a Table control.
Notes:
  • The Table control must allow the selection mode by cell. This option can be configured in the "GUI" tab of the description of Table control.
  • To find out the number of selected cells, use TableCellSelectOccurrence.
Example
NbSelectedCells is int
Total is real
RowNum is int
ColNum is int

NbSelectedCells = TableCellSelectOccurrence(TABLE_TABLE1)
FOR i = 1 to NbSelectedCells
RowNum = TableCellSelect(TABLE_TABLE1,i, tcsLine)
ColNum = TableCellSelect(TABLE_TABLE1,i, tcsColumn)
Total = Total + TABLE_TABLE1[RowNum,ColNum]

END
Syntax
<Result> = TableCellSelect(<Table Control> , <Subscript> , <Type of Information>)
<Result>: Integer
  • Number of the selected row or column,
  • -1 if a problem occurred.
Note: The selection mode by cell must have been selected for the Table control ("GUI" tab in the control description). Otherwise, <Result> is set to -1.
<Table Control>: Control name
Name of Table control to use.
<Subscript>: Integer
Number of the selected column. If this subscript does not correspond to a selected column (subscript greater than the number of columns for example), <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.
Components
WINDEVReports and Queries wd230obj.dll
Minimum required version
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment