PDA

Click to See Complete Forum and Search --> : [RESOLVED] Crystal Reports 10 -> temp fields?


vbjohn
Oct 24th, 2006, 09:40 AM
How do you clean out a shared variable after it is done and printed out on the group footer?

For example:

shared numberVar AvgCountNR;
WhilePrintingRecords;
CDBL(Sum ({@TSSales_NR})) / AvgCountNR

I want to set AvgCountNR to 0 at the end of the group footer.

shakti5385
Oct 24th, 2006, 11:54 AM
shared numberVar AvgCountNR;
WhilePrintingRecords;
CDBL(Sum ({@TSSales_NR})) / AvgCountNR
.

Can you tell where youare using this code in the crystal report or in the programming part.

vbjohn
Oct 24th, 2006, 12:52 PM
Using it in the Details section.

shakti5385
Oct 24th, 2006, 10:10 PM
to set AvgCountNR to 0 at the end of the group footer.


If you set AvgCountNR as zero then what will happen it will, return zero to you. So what is the sence of it. :afrog: