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 Hoja de cálculo
  • Properties specific to psheetSelection variables
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
The psheetSelection type is used to find out the advanced characteristics of a selection in a Spreadsheet control. The characteristics of this selection are returned by several WLanguage properties.
The .Selection property gets a variable of type psheetSelection.
Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Ejemplo
sel is psheetSelection = PSHEET_MySpreadsheet.Selection
IF sel.Type = psheetSelSimpleCell THEN
	// Display the cell name in the status bar
	STATUSBAR = sel.MinCell
END
t is psheetSelection
t = PSHEET_NoName1.Selection
SWITCH t.Type
	CASE psheetSelSimpleCell: Trace("You have selected a single cell.")
	CASE tblrSelSimpleHeader: Trace("You have selected a single header.")
		CASE psheetSelMultiCell: Trace("You have selected several cells.")
	CASE tblrSelMultiHeader: Trace("You have selected several headers.")
	CASE psheetSelRectCell: Trace("You have selected several cells (rectangle).")
	CASE psheetSelEmpty: Trace("You haven't selected any boxes.")
	CASE psheetSelAll: Trace("You have selected the entire sheet.")
	OTHER CASE
END

te is array of strings = t.Header
tc is array of strings = t.Cell
Trc is array of strings = t.RectCell
Trace("-----------------------------")
Trace("")

Trace("Min cell:", t.MinCell)
Trace("Max cell:", t.MaxCell)
Trace("-----------------------------")
Trace("")

Trace("Browse of headers")
FOR I = 1 TO te.Count
	Trace("header " + I + ":", te[I])
END
Trace("-----------------------------")
Trace("")

Trace("Browse of cells")
FOR I = 1 TO tc.Count
	Trace("cell " + I + ":", tc[I])
END
Trace("-----------------------------")
Trace("")

Trace("Browse of rectangle of cells")
FOR i = 1 TO Trc.Count
	Trace("rect cell " + i + ":", Trc[i])
END
Trace("-----------------------------")
Trace("")
Propiedades

Properties specific to psheetSelection variables

The following properties can be used to handle a selection in a Spreadsheet control:
Property nameType usedEffect
CellArray of stringsArray of selected cells. The cells are sorted according to the selection order.
This property is read-only.
HeaderArray of stringsSelected headers (headers of selected rows and/or columns).
This property is read-only.
MaxCellCharacter stringMaximum selected cell, which means the cell found at the bottom right of the rectangle defining the selection of cells.
This property is read-only.
MinCellCharacter stringMinimum selected cell, which means the cell found at the top left of the rectangle defining the selection of cells.
This property is read-only.
RectCellArray of stringsArray of rectangles of selected cells. Example: "A1:B2"
This property is read-only.
TypeInteger constantType of selection:
  • tblrSelMultiCell: Several boxes are selected.
  • tblrSelMultiEntête: Several headers are selected.
  • tblrSelRectCell: several cells are selected to form a rectangle.
  • tblrSelSimpleCell: A single box is selected.
  • tblrSelSimpleHeader: A single header is selected.
  • tblrSelTout: The entire sheet is selected.
  • tblrSelVide: No selection.
This property is read-only.
Versión mínima requerida
  • Versión 23
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