If the variables are calculated in PF, but the eep is in the "before generate" of the PF, then the variables haven't been calculated yet, right?
Karen -----Original Message----- From: Jim Belisle <[email protected]> To: rbase-l <[email protected]> Sent: Fri, Jul 8, 2016 4:53 pm Subject: RE: [RBASE-L] - on before generate EEP The variables used in the code are all defined in the report itself on the page footer. The code I sent is on before generate EEP in the same page footer area. No variables are defined with a datatype while in the WHILE LOOP. None of the variables in the WHILE loop have anything to do with the report. I am producing a PDF in each loop. Would that not mean the report is starting over in each loop? The WHILEOPT is not checked in the settings therefore should not be an issue. James Belisle Making Information Systems People Friendly Since 1990 From: [email protected] [mailto:[email protected]] On Behalf Of Doug Hamilton Sent: Friday, July 08, 2016 4:36 PM To: [email protected] Subject: Re: [RBASE-L] - on before generate EEP Do you have any variable types that are defined in the report? Or anywhere else within the WHILE loop? e.g. On Before Generate: SET VAR vordertaxamt CURR = 0 Any definition of a variable's datatype must be outside a WHILE loop. Setting a variable's value is ok within a WHILE loop, e.g. SET VAR vordertaxamt = 0 Doug On 7/8/2016 4:23 PM, Jim Belisle wrote: We use RBASE 9.5. I have a report in which I only want certain information to print under certain conditions. I put the EEP in the on before generate EEP of the band. The code is checking for taxable information and misc charges information. Here is the code. IF vordertaxamt <= 0 OR vordertaxamt IS NULL THEN PROPERTY comp_tchg VISIBLE 'FALSE' ELSE PROPERTY comp_tchg VISIBLE 'TRUE' ENDIF IF vmiscamount <= 0 OR vmiscamount IS NULL THEN PROPERTY comp_mchg VISIBLE 'FALSE' ELSE PROPERTY comp_mchg VISIBLE 'TRUE' ENDIF RETURN This reports prints within a WHILE loop based on a cursor that brings up each invoice. If the fields I want to show come up first then the code works. If the information happens to be in an invoice later in the WHILE loop then it does not show. What am I doing wrong? James Belisle Making Information Systems People Friendly Since 1990 -- You received this message because you are subscribed to the Google Groups "RBASE-L" group. To unsubscribe from this group and stop receiving emails from it, send an email [email protected]. For more options, visit https://groups.google.com/d/optout. Virus-free.www.avast.com -- You received this message because you are subscribed to the Google Groups "RBASE-L" group. To unsubscribe from this group and stop receiving emails from it, send an email [email protected]. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "RBASE-L" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "RBASE-L" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

