Stupid tot() question
Kenneth Brody
kenbrody at bestweb.net
Wed Feb 25 18:35:37 PST 2004
"Jay R. Ashworth" wrote:
[...]
> Ah. Well, yes. That's when =xx takes it: after all processing is
> done; effectively, at PRINT time -- since if you execute multiple
> explicit PRINT's in a record, you get whatever's current. I've never
> tried modifying a field that has an = in a break and PRINTing it
> multiple times; I suspect it's undefined.
If you PRINT a record multiple times, "=xx" will be totalled for each
record printed, at the time the printing occurs.
[...]
> > Try this:
> >
> > xx = xx + 1
> > yy = tot(1)
> >
> > Place xx and yy on the detail, subtotal, and grand total lines, and
> > tell me what you see.
>
> I will see that xx, unless it's global, follows the standard semantics
> of a dummy field, and that yy does not.
Huh?
Please try the above, along with "=1" on the subtotal/grandtotal lines
(using whatever field would be appropriate for a total, of course) and
report what you see. Then tell me how the first "follows the standard
semantics of a dummy field" and how the second "does not".
[...]
--
+---------+----------------------------------+-----------------------------+
| Kenneth | kenbrody at spamcop.net | "The opinions expressed |
| J. | http://www.hvcomputer.com | herein are not necessarily |
| Brody | http://www.fptech.com | those of fP Technologies." |
+---------+----------------------------------+-----------------------------+
More information about the Filepro-list
mailing list