Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid field populated on-the-fly
Message
 
 
To
17/04/2002 23:27:51
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00646163
Message ID:
00646176
Views:
17
>Hi. VFP7 user. In a grid, I have a field called 'freight'
>If the freight > 0, I want the freight column (of the grid) to display 'Y'
>Else, I want the column empty.
>
>Keep in mind that this is a field in a grid and it seems that every column has to have a control source.
>
>Thanks, Randy
>
>ps: one way that I thought of was to populate a field in the init of the field?? Is there a way with less overhead?
>r

If this field is for display purpose only, put iif(myTable.freight>0,'Y'," ") in a ControlSource field and set sparse property of the column to .f. (it may work without it as well)
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform