On Sat, Jul 18, 2009 at 9:55 PM, Sytze de Boer <[email protected]> wrote:
> Can I SUM data without changing the record position
>
> e.g
> I'm on row 10 in a 20 record table
> I issue the command SUM ALL AMOUNT TO MY_TOTALS
> But I son't want to shift the record position
>
> (I know I could do it as follows, but is there an alternate?)
> istartonrow=recno()
> SUM ALL AMOUNT TO MY_TOTALS
> go istsrtonrow
>
> --
> Regards
> Sytze de Boer
> Kiss Systems
> Hamilton, NZ
> Ph: 64-7-8391670, Mob:021 937611,
> www.kiss.co.nz
>
> You can also USE your table AGAIN with a different ALIAS and do your SUM
on the different table.
USE DBF("orig_alias") AGAIN IN 0 ALIAS new_alias
SELECT new_alias
SUM ALL AMOUNT TO MY_TOTALS
SELECT orig_alias && still in origianl position
This would work no matter what version of VFP you're using.
Fred
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.