Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculated field in grid
Message
De
24/07/2002 18:24:04
Irv Adams
MSC Managed Care, Inc.
Floride, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00682209
Message ID:
00682337
Vues:
14
...also, the added Column automatically becomes Read-only...very nice tip, thanks !!

-Irv.

>You can call function from the ControlSource of a Grid column...Create a method on the form, let's call it CalculateMe(), Grid1.Column1.ControlSource = "Thisform.CalculateMe()"
>
>In the method, you can put your own code and return the result, which will be displayed in the Column.
>
>
>e.g.
>>I want to display text in a text box in a column of a grid. The value displayed depends on the value in another field in the grid control source table. I tried putting code in the text box When method to calculate the value and assign it to THIS.VALUE. This works OK when I click on the text box, but if I scroll the grid all of the records change to the value in the currently highlighted record. Where do I need to put the code to make each record dis[lay the correct value for each record?
>>
>>Thanks.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform