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
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
Adds a worksheet into a Spreadsheet control found in a window.
Note: To use this function, the Spreadsheet control must allow the management of several spreadsheets:
  • In the "Detail" tab of the control description window, check the "Permitir varias hojas de trabajo" option..
  • Through programming, use the MultiWorksheet property.
Ejemplo
// Add a worksheet
nWorksheet is int 
nWorksheet = SpreadsheetAddWorksheet(PSHEET_MySpreadsheet)
// Select the worksheet
PSHEET_MySpreadsheet.CurrentWorksheet = nWorksheet
Sintaxis
<Result> = SpreadsheetAddWorksheet(<Spreadsheet control> [, <Worksheet name>])
<Result>: Integer
Number of the worksheet created in the Spreadsheet control.
<Spreadsheet control>: Control name
Name of the Spreadsheet control to be used.
<Worksheet name>: Optional character string
Name of the worksheet to create. If this parameter is not specified, the worksheet is created with a default name ("WorksheetX"). This name:
  • appears in the tab used to select the worksheet (at the bottom of the Spreadsheet control).
  • is used to identify the worksheet in the formulas. For example, a formula using a cell in "Sheet2" might be: "=SUM(Sheet2!B4:D4)".
Observaciones
  • The function fails and displays a WLanguage error in the following cases:
    • The Spreadsheet control does not manage several worksheets.
    • The name of the worksheet is invalid or it is already used by another worksheet.
  • This function can only be used on a Spreadsheet control found in a window.
Componente: wd300obj.dll
Versión mínima requerida
  • Versión 20
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