|
|
|
|
|
<Spreadsheet>.AddFormula (Función) Adds a calculation formula into a Spreadsheet control found in a window. // Initialize the 1st column with numbers from 1 to 10 FOR I = 1 TO 10 PSHEET_Spreadsheet.AddData(1, I, "Row " + I) END PSHEET_Spreadsheet.AddData(1, 1, 13) PSHEET_Spreadsheet.AddData(1, 2, 20) PSHEET_Spreadsheet.AddFormula(1, 3, "A1+A2/2") // Displays 23 PSHEET_Spreadsheet.AddFormula("A4", "A1+A2") PSHEET_Spreadsheet.AddData(1, 2, 33) // Displays 33 in cell A3
Sintaxis
Añadir una fórmula en una celda identificada por sus coordenadas Ocultar los detalles
<Spreadsheet control>.AddFormula(<Column> , <Row> , <Formula>)
<Spreadsheet control>: Nombre del control Name of the Spreadsheet control to be used. <Column>: Integro Column number of the cell containing the formula. <Row>: Integro Row number of the cell containing the formula. <Formula>: Cadena de caracteres 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.
Añadir una fórmula en una celda identificada por su nombre Ocultar los detalles
<Spreadsheet control>.AddFormula(<Cell name> , <Formula>)
<Spreadsheet control>: Nombre del control Name of the Spreadsheet control to be used. <Cell name>: Cadena de caracteres Name of the cell to be used. For example: "A4". <Formula>: Cadena de caracteres 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. It is replaced with the <Formula> formula.
- This function can only be used on a Spreadsheet control found in a window.
- The cells can be renamed (<Spreadsheet>.AddName). You have the ability to use the name of a cell in the formula.
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|