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

evalAverage() private méthode

private evalAverage ( cReportFormulaInt fint ) : void
fint cReportFormulaInt
Résultat void
        private void evalAverage(cReportFormulaInt fint)
        {
            if (fint.getVariables().item(C_AVERAGESUM) == null)
            {
                fint.getVariables().add(null, C_AVERAGESUM);
                fint.getVariables().add(null, C_AVERAGECOUNT);
            }

            cReportVariable w_item = fint.getVariables().item(C_AVERAGESUM);
            // the average function is for numbers
            //
            w_item.setValue((double)w_item.getValue()
                + pGetNumber(m_report.getValue(fint.getParameters().item(0).getValue(), true)));

            w_item = fint.getVariables().item(C_AVERAGECOUNT);
            // the average function is for numbers
            //
            w_item.setValue((double)w_item.getValue() + 1);
        }