Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I put a calculated field in a grid?
Message
From
03/02/1999 16:53:59
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00183638
Message ID:
00183643
Views:
17
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
Previous
Reply
Map
View

Click here to load this message in the networking platform