CSReportDll.cReportCompiler.checkSyntax C# (CSharp) Méthode

checkSyntax() public méthode

public checkSyntax ( cReportFormula formula ) : bool
formula cReportFormula
Résultat bool
        public bool checkSyntax(cReportFormula formula)
        {
            try
            {
                String code = "";

                m_formula = formula;
                m_formula.getFormulasInt().clear();

                // check syntax
                code = formula.getText();
                m_formula.setTextC(code);

                pCheckSyntax(code);

                return true;
            }
            catch (Exception ex)
            {
                cError.mngError(ex, "checkSyntax", C_MODULE, "");

                m_formula = null;
                m_fint = null;

                return false;
            }

        }