private void m_fFormula_CheckSintaxis(out bool cancel, String code) { cReportFormula f = null; f = new cReportFormula(); if (m_fProperties != null) { f.setName(m_fProperties.getFormulaName()); } else { f.setName(m_fSecProperties.getFormulaName()); } f.setText(code); cancel = !m_report.getCompiler().checkSyntax(f); }
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); }