private void evalGroupCount(cReportFormulaInt fint)
{
if (fint.getVariables().item(C_GROUPCOUNT) == null)
{
fint.getVariables().add(null, C_GROUPCOUNT);
}
cReportVariable w_item = fint.getVariables().item(C_GROUPCOUNT);
// the Count function is for numbers
// if param1 doesn't contain an index column is because we haven't
// process the formulas yet. It happens because compilereport
// is called before the InitColIndex in cReport's Launch function
// and the order can not be changed because the function GetData
// is executed after the CompileReport function, and we don't want
// to change this order because we are afraid of the collateral damage
// it could produce :(
//
// In the future we can analize it and modify the order and if this
// doesn't produce any error we will remove this if :)
//
if (fint.getParameters().item(cReportGlobals.C_KEYINDEXCOL) == null)
{
w_item.setValue(0);
}
else
{
w_item.setValue(
m_report.getGroupCount(
int.Parse(fint.getParameters().item(cReportGlobals.C_KEYINDEXCOL).getValue()),
int.Parse(fint.getParameters().item(cReportGlobals.C_KEYINDEXGROUP).getValue())));
}
}