Take the following situation.
Group Header 1
Group Header 2
Details
Group Footer 2
Group Header 2
details
Group Footer 2
etc
Group footer 1
Lets say I need to keep a count of the cost of an analysis which appears in the details area. I can then use a global variable to keep track of this and report the total cost for all in group footer 1. I thought I could then refer to the same variable and reset it to 0 in every group header 1. However, when I do this, it seems to have no affect on the variable and it just keeps getting bigger and bigger. Is it something to do with when the groups are evaluated (ie all group 1 headers and footers are put in place first and then all the information for group 2 is put in place). I have tried putting in an Evaluateafter(VariableResetter) but this has not helped. What am I doing wrong. I have double checked the names of the variables to ensure there was no typo or whatever.
With thanks
Scott
Group Header 1
Group Header 2
Details
Group Footer 2
Group Header 2
details
Group Footer 2
etc
Group footer 1
Lets say I need to keep a count of the cost of an analysis which appears in the details area. I can then use a global variable to keep track of this and report the total cost for all in group footer 1. I thought I could then refer to the same variable and reset it to 0 in every group header 1. However, when I do this, it seems to have no affect on the variable and it just keeps getting bigger and bigger. Is it something to do with when the groups are evaluated (ie all group 1 headers and footers are put in place first and then all the information for group 2 is put in place). I have tried putting in an Evaluateafter(VariableResetter) but this has not helped. What am I doing wrong. I have double checked the names of the variables to ensure there was no typo or whatever.
With thanks
Scott