private void evalMax(cReportFormulaInt fint)
{
object value = null;
if (fint.getVariables().item(C_MAX) == null)
{
fint.getVariables().add(null, C_MAX);
}
cReportVariable w_item = fint.getVariables().item(C_MAX);
// the Max function if for numbers and strings
//
value = m_report.getValue(fint.getParameters().item(0).getValue());
if (value.GetType() == typeof(String))
{
if (String.Compare(w_item.getValue().ToString(),
value.ToString(),
StringComparison.CurrentCulture) < 0)
{
w_item.setValue(value);
}
}
else
{
if ((double)w_item.getValue() < (double)value)
{
w_item.setValue(value);
}
}
}