Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calc SUM up to current record
Message
From
13/02/2006 13:49:02
 
 
To
13/02/2006 13:24:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Miscellaneous
Thread ID:
01095907
Message ID:
01095920
Views:
12
This message has been marked as the solution to the initial question of the thread.
>When I have a indexed table, how do I do
Calc sum(somefield)
for all records up to and including the currently selected record?
* independently to the order
currRec=RECNO()

Calc all while RECNO()#m.currRec sum(somefield) to nsum
nsum=nsum+somefield
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform