Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to sum a column of a grid control
Message
From
27/03/2002 19:32:56
 
 
To
27/03/2002 19:31:28
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00638188
Message ID:
00638209
Views:
20
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform