If Currreport.showoutput....then Begin

raven44raven44 Member Posts: 85
Hi All,

Wondering if the return function can be used as below, as I'm not gettting the desired results:

IF CURRREPORT.SHOWOUTPUT(Amount <> 0) THEN BEGIN
TestAmount := 1;
...
END;

When Amount <> 0, TestAmount is still resulting in 0.
I have to add an additional...

IF CURRREPORT>SHOWOUTPUT THEN
TestAmount := 1;

...in order to get the result.
Does that mean we cant use the SHOWOUTPUT as a return function when we're setting it based on a condition?

Comments

  • Sandeep_PrajapatiSandeep_Prajapati Member Posts: 151
    hi,
    I just tried a similar construct...... that is working for me.
     If CurrReport.SHOWOUTPUT("No." <> '1100') then  begin 
       I := I + 1;
     end; 
    

    So, we dont have to put an additional
    IF CURRREPORT>SHOWOUTPUT THEN 
    TestAmount := 1; 
    
    Sandeep Prajapati
    Technical Consultant, MS Dynamics NAV
Sign In or Register to comment.