private cReportPaintObject pGetPaintObjByCtrlName(
String ctrlName,
CSReportDll.cReportPageFields fields,
int offset)
{
CSReportDll.cReportPageField fld = getFieldByCtrlName(ctrlName, fields);
for (int _i = 0; _i < m_paint.getPaintObjects().count(); _i++)
{
cReportPaintObject rtn = m_paint.getPaintObjects().item(_i);
if (fields.item(rtn.getIndexField() - offset) == fld)
{
return rtn;
}
}
return null;
}