Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Difference between tables and cursors?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00107285
Message ID:
00107534
Vues:
19
I'd look somewhere else for the solution. I tried what this every way I can think of and I can't replicate your problem. I just generated cursors using numeric and currency field types and did a CALC SUM(), SUM & SUM() and all of them worked just fine.

>Why is it when I try to SUM() on a cursor, I get a result of the first record's data multiplied by reccount(). If I attempt the same thing on a table, the result is correct?
>
>SUM(user.amount) TO xx
>
>If I use a table with 2 records, the first amount = 2 second amount = 3, the answer is 5. If I do the same command on a cursor, the answer is 4. It seems to take the first value it sees as all values.
>
>Any suggestions?
>
>M. Carpio
>MIS - Pep Boys
-cjh
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform