Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best place/way to sum a grid column?
Message
De
18/04/1997 16:44:17
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00028923
Message ID:
00028930
Vues:
36
>I was playing with keeping running totals of selected items in a grid, so I made a view that only pulled those records that have the "selected" field as .T. It works fine. Now, I'm wondering where the best place for this code is if I want to display it in a textbox on the same form as the grid so it is updated when the user selects or de-selects something. Initally, I had it in the refresh of the textbox, but this doesn't seem to work beause when the txtbox is refreshing for the first time the grid isn't available yet, etc. Does anyone have any thoughts on better ways to keep running totals in a textbox?
>
>Michael G. Emmons

When user selects/deselects something in grid he triggers some events. Depending how you arrange the interface it could be Click event of some button or just InteractiveChange for some Column.Textbox. So, put your code 'refreshing' textbox (I guess it's just Thisform.text1.value=...) into one of those events.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform