CGXFormulaSheet::ParseExpression
BOOL ParseExpression(LPCTSTR pszFormula, CGXFormula& fm);
pszFormula
String with formula expression
fm
Reference to a CGXFormula object where the compiled formula expression will be stored in a binary form. You can later pass this CGXFormula object to EvaluateExpression.
Remarks
Parses the given expression and returns the parsed formula expression in binary format.
Example:
CGXFormula fm;
CString s;
if (ParseExpression(_T("=sin(1)"), fm)
&& EvaluateExpression(s, fm))
{
TRACE(_T("sin(1) = %s"), s);
}
else
{
GetError(s);
TRACE(_T("sin(1): Error - %s"), s);
}
See Also
CGXFormulaSheet::EvaluateExpression