Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to cumulate totals of my view without loosing cur. r
Message
De
04/11/1999 13:46:05
 
 
À
04/11/1999 10:54:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00286872
Message ID:
00287013
Vues:
22
Eric should be aware that if the view buffer is "dirty", the values pulled by a select statement won't reflect the uncommited changes. SQL SELECT operations on a view actually pull the values from the underlying table.


>SELECT Sum(MyField) AS Total FROM MyView INTO CURSOR curSum
>lnTotal = lnTotal + curSum.Total
>USE IN curSum
>
>HTH
>I have a view that I use to input data in a grid. In the amount field, valid method, I want to recalculate the totals by cumulating the amount in each record of the current view. The problem is that it makes me loose my current pointer.
>>
>>How can I achieve this?
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform