TOT(0 seems broke

garyolman@bellsouth olmang at bellsouth.net
Wed Mar 7 05:50:15 PST 2007


 You are absolutely correct. I must be to close the the trees
Thanks
Gary

-----Original Message-----
From: Kenneth Brody [mailto:kenbrody at bestweb.net] 
Sent: Wednesday, March 07, 2007 8:25 AM
To: garyolman at bellsouth
Cc: Fplist
Subject: Re: TOT(0 seems broke

Quoting garyolman at bellsouth (Tue, 6 Mar 2007 22:10:05 -0500):

> Here is the code:
>
>
> This is output processing
>
> Ga(9,,g)
> end
> @wbrk1: ga=Tot(43)
>
> I am expecting and hoping for the total of field 43 at the first break.
> What I get is the output of the last record seen

Which is exactly what you asked for.  You told filePro to keep a running
total of the last record in each break on the major sort key.  What you want
is a simple:

    ga(9,,g) = tot(43)

--
KenBrody at BestWeb dot net        spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com



More information about the Filepro-list mailing list