FW: Bug in @DONE?

Bruce Easton bruce at stn.com
Thu Feb 22 08:41:09 PST 2007


> Bruce Easton wrote Thursday, February 22, 2007 11:28 AM:
>
> > Ken Brody wrote on Wednesday, February 21, 2007 10:36 AM:
> >
> > Quoting Fairlight (Tue, 20 Feb 2007 22:12:46 -0500):
> >
> > > fP 5.0.14D4, SCO 5.0.6
> > >
> > > Weirdest thing.  Using rreport, someone had a problem with their code
> > > not working correctly for an empty output format.  And I do mean
> > > empty...no characters in any section.  Here's how I understand it
> > > (roughly):
> > >
> > > There was a processing table being run for sort/selection, and it was
> > > very simple, just a select;end.
> > >
> > > For the output processing, they had a table that had an @DONE section.
> > > This whole thing worked fine when there were records selected.
However,
> > > if no records were selected, they were getting the error "lp: no
printer
> > > specified".
> > [...]
> > > Turns out, if I set PFWGT0=ON and changed @DONE to @WGT, it
miraculously
> > > started working in both cases, not just the one case.  The problem
> > > entirely went away, rreport started exiting with proper 0 exit code.
> > [...]
>
> >What is in the @DONE (now @WGT) event?
> >

> Ken - following is the actual @wgt processing that works fine and
> evidently does not produce exit code 1, as Mark indicated.  Using
> @done instead of @wgt here produces exit code 1 (only in the case
> where no records are selected).  (SCO Unix - fp 5.0.14 - we've
> tried this with different combinations of printers or file
> destinations on the form or using the PRINTER command in
> processing, but that didn't seem to make any difference in this
> exit code.)
>
> Bruce

[.. sample code - see last email ..]

I should have pointed out also that when this problem of exit
code 1 occurs using @done (and when no records have been
selected), the output document as indicated by destination
getenv("ONEGATE_OUTFILE") IS correctly produced during the
@done processing.

Bruce

Bruce Easton
STN, Inc.



More information about the Filepro-list mailing list