TOT(0 seems broke
Kenneth Brody
kenbrody at bestweb.net
Wed Mar 7 07:40:17 PST 2007
Quoting George Simon (Wed, 7 Mar 2007 10:24:14 -0500):
> -----Original Message-----
> From: Kenneth Brody [mailto:kenbrody at bestweb.net]
[...]
> Also, here's something you can do with TOT() that will delight and
> confuse everyone here. :-)
>
> If: foobar eq "Y"
> Then: xx = tot(foo)
> If: foobar ne "Y"
> Then: xx = tot(bar)
>
> What would you expect "xx" to hold? I'll tell you right away that
> it is _not_ the same as
>
> If: foobar eq "Y"
> Then: xx = xx + foo
> If: foobar ne "Y"
> Then: xx = xx + bar
>
> --
>
> Is xx a global dummy?
It doesn't matter. (After all, xx is explicitly being set a value
in the code, so its previous contents are irrelevent.)
However, for the sake of argument, say it is. Say that foo and bar
are both (6,.0) and xx is (8,.0,g).
--
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