Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Total of a column from grid
Message
De
07/11/2000 10:35:35
 
 
À
07/11/2000 07:27:25
Sammy Derban
Ghana Telecom
Accra, Ghana
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00438706
Message ID:
00438776
Vues:
18
Sammy,

As Vlad mentioned, if your cursor is buffered, you should use SUM. Beware that this moves the record pointer. If the cursor is not buffered, it's probably easier to do something like this:

SELECT SUM(nAmount) FROM MyCursor INTO ARRAY laTotal

IF _TALLY > 0
lnTotal = laTotal[1]
ELSE
lnTotal = 0
ENDIF

<From cursor or grid?
if cursor won't there be a conflict when a try to open and sum from cursor hhoked to grid?
if from grid how ?>>
Daniel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform