PeteWalburn
Programmer
Hello,
I have a global variable gintPOs which is initially 0.
In my report I have a SubReport which contains a Sequential Section. In the Sequential Section are 2 Content sections. In the OnRow event of the first Content section I increment the global variable.
In the After frame of the SubReport I display the global variable, but it is always reset before the display of it.
My code does not set the variable to 0 anywhere, so why does it have a 0 value in it? When I step through in debug mode I can see that it is incremented as expected for each row displayed.
So why is the variable reset (presumably when the Sequential Section is exited)?
Pete
I have a global variable gintPOs which is initially 0.
In my report I have a SubReport which contains a Sequential Section. In the Sequential Section are 2 Content sections. In the OnRow event of the first Content section I increment the global variable.
In the After frame of the SubReport I display the global variable, but it is always reset before the display of it.
My code does not set the variable to 0 anywhere, so why does it have a 0 value in it? When I step through in debug mode I can see that it is incremented as expected for each row displayed.
So why is the variable reset (presumably when the Sequential Section is exited)?
Pete