setText() публичный Метод

public setText ( String rhs ) : void
rhs String
Результат void
Пример #1
0
        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);
        }
Пример #2
0
        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);
        }