zero records printing problem

Kenneth Brody kenbrody at spamcop.net
Mon Oct 26 12:26:12 PDT 2015


On 10/26/2015 2:51 PM, Bob Thomason via Filepro-list wrote:
> I have a need to print a report and if no records are selected print
> something like None Selected.
>
> I've tried doing do so with @wgt but that does not get processed.
>
> I tried with @done.  That gets process but does not print.  I've even added
> the print command
> inside the @done process but still nothing prints.
>
> Reading the manual, @done get processed after all printing is done.
>
> How do I get a report out of this saying "None Selected"?

As you already noted, @DONE is executed after all printing is done, so it's 
too late to print something there.

Also, @WGT is, by default, not executed if no records are selected. 
However, that default behavior can be overridden by setting "PFWGT0=ON".

-- 
Kenneth Brody


More information about the Filepro-list mailing list