Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to sum a column of a grid control
Message
De
27/03/2002 19:32:56
 
 
À
27/03/2002 19:31:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00638188
Message ID:
00638209
Vues:
19
>>Hello, I have a grid control on a form, and a text box below it.
>>the values in one of the columns of the grid are numeric.
>>
>>I would like to put the sum of the values from this particular column to the text box.
>>I get the error saying "The sum.prg not found"?
>>
>>the code is as follows:
>>
>>in the init() method of the text box
>>
>>this.value=sum(this.parent.grid1.column5.text1.value)
>>
>>does anyone know how to deal with this or fix it?
>>
>>thanks before-hand.
>
>Put that code in the refresh method....

Better yet....create a custom property that holds the total...create a custom method that computes the total....refresh your grid with that custom property.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform