D & R reprot difference
Transpower at aol.com
Transpower at aol.com
Sun Sep 19 14:03:55 PDT 2004
In a message dated 9/19/2004 4:30:29 PM Eastern Daylight Time,
dayone at bright.net writes:
>
> XP windows
> 5.0.13R9
> 5.0.13D9
>
> I am trying to run a simple report totaling a field with a single "Iffer"
> and I
> get a different total running same data with dreport and rreport?
>
> two ways I have tried: ( @wgt is same in both instances)
>
> One:
> -----
> If:
> Then: qn(9,.0)=3
> ----
> If: 2 lt "100"
> Then: qn=""
> ----
> If:
> Then: qo(9,.0)=qo+qn
> ----
> If:
> Then:end
> ----
>
> Two:
> ------
> If: 2 ge "100"
> Then: qn(9,.0)=3; qo(9,.0)=qo+qn
> -------
> If:
> Then: end
> -------
>
> -------
> @wgt If:
> Then: to=tot(qo)
> ------
>
> In both above using same exact record selection, I get 19 as total using
> rreport and I get 18 as the total using dreport. 18 is the correct
> total.
>
> Is this some kind of bug or what am I doing incorrectly in rreport code that
> is
> corect in dreprot code?
>
> Regards,
> Charles Day
>
>
I don't understand your code exactly. If you're accumulating qo, why isn't
qo global? The grand total, to, would then be the sum of the varying amounts
at each record.
Regards,
RWS
transpower at aol.com
Transpower Corporation
www.transpowercorp.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.celestial.com/pipermail/filepro-list/attachments/20040919/efbd7270/attachment.html
More information about the Filepro-list
mailing list