CGXFormulaSheet::SetFormulaRowCol

BOOL SetFormulaRowCol(ROWCOL nRow, ROWCOL nCol, LPCTSTR pszFormula);

nRow

Specifies the grid row of the cell.

nCol

Specifies the grid column of the cell.

pszFormula

Points to the formula expression. The formula must start with an equal sign ('=").

Return Value

TRUE if operation was successful; FALSE otherwise.

Remarks

Assigns a number to a cell. The value type for the cell will be set to Number.

CGXGridCore::SetValueRange and SetExpressionRowCol will call this method for formulas after checking the cell is not read only and notifying the cell object of the change.

If an error happens while parsing the formula, the error state for the engine will contain detailed information about the error.

See Also

 CGXGridCore::SetExpressionRowCol  CGXFormulaSheet::SetExpressionRowCol

CGXFormulaSheet

 Class Overview |  Class Members