XLL+ Class Library (6.3)

CXlControlFormulaEdit::GetFormula

Returns a string containing a version of the formula displayed in the field

BOOL GetFormula(
   CString& strFormula,
   BOOL bA1 = TRUE
) const;

Parameters

strFormula

String buffer.

bA1

Flag denoting whether the formula is in A1-style or R1C1 style. TRUE indicates that all references are in A1 form; FALSE that they are in R1C1 form.

Return Value

Returns TRUE if the field contains a valid formula. Returns FALSE if the field contains an invalid formula.

Remarks

Populates a string containing a version of the formula displayed in the field. The formula may contain references in A1 or in R1C1 form, depending on the value of bA1.

Requirements

Header: xldialog.h

See Also

CXlControlFormulaEdit Class | CXlControlFormulaEdit Methods