Hello,

I am writing code for the executeSection() method of a report
section.  I would like to loop though the all the report controls is
a section, and while looping, make formatting changes to the
controls based on the value being displayed by the controls.  For
example, as modeled in code below, if a string control contains the
characters "KIT", the text gets underlined and if an amount is over
1000, the data is bolded.  In my sample I placed "???" where a
property/method would return the actual data about to be printed.

 
Does a property or method exist that would return the control's data?

_______________________________

void  executeSection()
{
    ReportControl reportControl;
    ReportStringControl reportStringControl;
    ReportRealControl reportRealControl;
    int i;

    for (i=1; i <= this.controlCount() ; i+=1)
    {
        reportControl = this.controlNo(i);

        switch(reportControl.handle())
        {
            case classNum(ReportStringControl):
                reportStringControl = reportControl;
                if (strnfind(reportStringControl.???(),"KIT",0,9999)
> 0)
                {
                    reportStringControl.underline(true);
                }
                break;
            case classNum(ReportTextControl):break;
            case classNum(ReportIntegerControl):break;
            case classNum(ReportRealControl):
                reportRealControl = reportControl;
                if (reportRealControl.???() > 1000)
                {
                 reportStringControl.bold(6);
                }
                break;
            case classNum(ReportEnumControl):break;
            case classNum(ReportDateControl):break;
            case classNum(ReportTimeControl):break;
        }
     }
  
    super();
}

_______________________________


Thanks,

Dan G.












SPONSORED LINKS
Computer part Programming languages Microsoft axapta
Support exchange


YAHOO! GROUPS LINKS




Reply via email to