AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Tabla
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Advertencia
A partir de la versión 16 (56F), this function is kept for backward compatibility. This function is replaced with TableSelect.
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 TableCellSelectOccurrence.
Ejemplo
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
Sintaxis
<Result> = TableCellSelect(<Table control> , <Index> , <Type of information>)
<Result>: Integer
  • Number of the selected row or column,
  • -1 if a problem occurred.
Note The cell selection mode must have been selected for the Table control ("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.
Componente: wd300obj.dll
Versión mínima requerida
  • Versión 16
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local