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
TableCellSelectOccurrence (Function)
In French: TableCelluleSelectOccurrence
Warning
From version 16 (56F), this function is kept for backward compatibility. This function is replaced by TableSelectCount.
Returns the number of selected cells found in a Table control.
Note: 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.
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> = TableCellSelectOccurrence(<Table Control>)
<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 Table control to use.
Remarks
Then, the list of cells can be retrieved by TableCellSelect.
Components
WINDEVReports and Queries wd230obj.dll
Minimum required version
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment