private bool pAddFormulasInSection(cReportSections sections)
{ // TODO: Use of ByRef founded Private Function pAddFormulasInSection(ByRef Sections As cReportSections) As Boolean
cReportSection sec = null;
cReportSectionLine secLn = null;
for (int _i = 0; _i < sections.count(); _i++)
{
sec = sections.item(_i);
if (sec.getHasFormulaHide())
{
if (!m_compiler.checkSyntax(sec.getFormulaHide()))
{
return false;
}
// to have debug info
//
sec.getFormulaHide().setSectionName(sec.getName());
// add the formula to the formulas collection
//
addFormula(sec.getFormulaHide(), sec.getName() + "_" + "H");
}
for (int _j = 0; _j < sec.getSectionLines().count(); _j++)
{
secLn = sec.getSectionLines().item(_j);
if (secLn.getHasFormulaHide())
{
if (!m_compiler.checkSyntax(secLn.getFormulaHide()))
{
return false;
}
// to have debug info
//
secLn.getFormulaHide().setSectionName(secLn.getSectionName());
secLn.getFormulaHide().setSectionLineIndex(secLn.getIndex());
// add the formula to the formulas collection
//
addFormula(secLn.getFormulaHide(), sec.getName()
+ "_R_" + secLn.getIndex().ToString() + "_" + "H");
}
}
}
return true;
}