PC SOFT

AYUDA EN LÍNEA
DE WINDEV, WEBDEV Y WINDEV MOBILE


WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Otros
Procedimientos almacenados
SpreadsheetAddFormula (Function)
 
Adds a calculation formula into a Spreadsheet control found in a window.
Ejemplo
//  Initialize the 1st column with numbers from 1 to 10
FOR I = 1 TO 10
SpreadsheetAddData(PSHEET_Spreadsheet, 1, I, "Row " + I)
END

SpreadsheetAddData(PSHEET_Spreadsheet, 1, 1, 13)
SpreadsheetAddData(PSHEET_Spreadsheet, 1, 2, 20)
SpreadsheetAddFormula(PSHEET_Spreadsheet, 1, 3, "A1+A2/2") // Displays 23
SpreadsheetAddFormula(PSHEET_Spreadsheet, "A4", "A1+A2")
SpreadsheetAddData(PSHEET_Spreadsheet, 1, 2, 33) // Displays 33 in the A3 cell
Sintaxis

Adding a formula into a cell identified by its coordinates Ocultar los detalles

SpreadsheetAddFormula(<Spreadsheet control> , <Column> , <Row> , <Formula>)
<Spreadsheet control>: Control name
Name of Spreadsheet control to use.
<Column>: Integer
Column number of the cell containing the formula.
<Row>: Integer
Row number of the cell containing the formula.
<Formula>: Character string (with quotes)
Formula to add. The first "=" character must not be included in the formula. For example: "A1+B2-A2"
In case of syntax error or invalid identifier, "###" is displayed in the cell and a non-fatal error is displayed.

Adding a formula into a cell identified by its name Ocultar los detalles

SpreadsheetAddFormula(<Spreadsheet control> , <Cell Name> , <Formula>)
<Spreadsheet control>: Control name
Name of Spreadsheet control to use.
<Cell Name>: Character string (with quotes)
Name of cell to use. For example: "A4".
<Formula>: Character string (with quotes)
Formula to add. The first "=" character must not be included in the formula. For example: "A1+B2-A2"
In case of syntax error or invalid identifier, "###" is displayed in the cell and a non-fatal error is displayed.
Observaciones
  • If the cell (Column, Row) does not exist, the cell is created.
  • If the cell (Column, Row) already exists, the content is deleted. Spreadsheet control.
  • This function can only be used on a Spreadsheet control found in a window.
  • Versiones 22 y posteriores
    The cells can be renamed (SpreadsheetAddName). You have the ability to use the name of a cell in the formula.
    Nueva funcionalidad versión 22
    The cells can be renamed (SpreadsheetAddName). You have the ability to use the name of a cell in the formula.
    The cells can be renamed (SpreadsheetAddName). You have the ability to use the name of a cell in the formula.
Componente : wd240obj.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