Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I put a calculated field in a grid?
Message
De
03/02/1999 16:53:59
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00183638
Message ID:
00183643
Vues:
18
Hiya Joe ----

Hmmm...generally what I do in these situations is bind a view to the grid, representing the numeric calc with a Num field. Then run the calculation once on Grid.Init to ensure that the starting values are correct for the field and then do a REPLACE of the field when something changes that affects the calculation and Refresh the grid.


>I put a function in the ControlSource of one of my columns and now I get a blank grid!
>
>My function is being passed a numeric argument and I read something in the Dec98 FoxAdvisor that said I couldn't do that, so it suggested passing a dummy character argument as well to get around it.
>
>Still no luck...
>
>Any ideas?
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform