On Tue, Jan 25, 2011 at 2:33 PM, Ron Jeffries <[email protected]> wrote:
> Hello, Raul.  On Tuesday, January 25, 2011, at 2:22:29 PM, you wrote:
>> nacct was initialized, in the previous block of code, to point
>> at the record after the end of the previous set of loaded data.
>
> Yes ... but I think that the subsequent loops are looking up
> accounts and trying to update them. Surely they are not ALL at the
> end?

If that record represents "the current day" and the previous
journal record represents "previous days", updating only the
current day's values would seem to be the right thing to do:
Previous days' calculations should already be complete.
(Though, granted, a paranoid programmer might want to
deal with the case where those calculations had failed.)

Note also that acct will be initialized with all 0s when the
program starts.

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to