Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Counting and Identifying Values
Message
From
04/06/2001 13:23:17
 
 
To
04/06/2001 10:59:18
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00514598
Message ID:
00514698
Views:
8
How about:
CALCULATE SUM (R1), SUM (R2), ... TO ARRAY aColSums
lnTotal = 0
FOR X = 1 TO ALEN (aColSums, 1)
    lnTotal = aColSums [X] + lnTotal
ENDFOR
With 30 fields, you may run into a limit issue, but this can be resolved by breaking into multiple runs.

Jay
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform