Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic forecolor for CmdButton in grid column
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00885644
Message ID:
00885679
Views:
13
Thanks. that did it. i thought that it would set the textbox forecolor and not affect the cmdbutton... but it worked.


>I have a "notes" command button in a column of a grid. I want to set the forecolor for the command button to blue if the note field is NOT empty (for each particular row), and black if it is empty. How is this done?
>
>In Init Method of the form:
>
>thisform.Grid1.Column1.DynamycForeColor = "IIF(EMPTY(MyTable.NoteField),RGB(0,0,0),RGB(0,0,255))"
>
>
>Column1 is the column tha has the command button, set Sparce to .f.
>
>This work in VFP 8.0 ( never tesetd in earlier).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform