Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Issue with setting and resetting a variable

Status
Not open for further replies.

lavadan

Programmer
Dec 17, 2007
49
0
0
US
I have the below report structure

Report Header- Variable set to 0
Page Header- Section supressed if variable is 1(which means suppress on last page
suppression formula is WhilePrintingRecords;
numberVar variable1;
if variable1=0 then
FALSE
else
TRUE;
Report footer- variable set to 1

Now the fun is on one of the user machines, the Page header gets suppressed on all pages. If we refresh, then the page header gets displayed. It happens randomly and I am not able to research as the page header gets displayed properly once I start playing with the report.

I can put a simple fix to ignore the variables and suppress the page header contents on the last page but I want to know what is causing this issue. Is there a cache for the variable setting that is causing this confusion?
 
FYI: For me global variables never seemed to work properly. I always make them shared or local. I do not know if it will help you.
 
But I have not declared it as Global variable/shared/local. What is the default variable type if I did not declare?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top