Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SUM of array
Message
 
 
To
11/07/2000 05:28:32
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00390646
Message ID:
00390664
Views:
8
>Is there a way of calculating the sum total of an array - rather than myarray(1) + myarray(2) etc.?

Kevin,

Since SUM function does not support array variable other than field, my suggestion is for you to create cursor and use APPEND FROM ARRAY then from there, you can make use of the SUM.

One more thing, is there any special reason as to not use FOR i..ENDFOR then get the sum within the loop? It's faster, isn't?
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Previous
Reply
Map
View

Click here to load this message in the networking platform