Worksheet::writeFormula
Описание
Write a formula to the specified row and column (zero indexed). In case of error it will write the error message (instead of the formula) in the corresponding row and column.
Параметр
integer $row - Zero indexed row
integer $col - Zero indexed column
string $formula - The formula text string
mixed $format - The optional XF format
Возвращаемое значение
integer - 0 for normal termination, -1 for an error in the formula, -2 for row or column out of range.
Заметка
Эта функция не должна вызываться статически.
Formulas must start with an equal sign ('=').
Arguments given to an Excel function should be separated by comas (','), not by semicolons (';').
Пример
Пример 39-1. Using writeFormula()
|
Пред. | Начало | След. |
Worksheet::writeBlank | Уровень выше | Worksheet::writeUrl |