Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SUM of array
Message
 
À
11/07/2000 05:28:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Divers
Thread ID:
00390646
Message ID:
00390664
Vues:
9
>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."
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform