public bool checkSyntax(String code) {
cReportFormula f = null;
f = new cReportFormula();
if (m_fProperties != null)
{
f.setName(m_fProperties.getFormulaName());
}
else if (m_fSecProperties != null)
{
f.setName(m_fSecProperties.getFormulaName());
}
else
{
f.setName(cMainEditor.getCtrlTreeBox().getFormulaName());
}
f.setText(code);
return m_report.getCompiler().checkSyntax(f);
}