Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement