Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change the BackColor of a Single Cell
Message
From
10/01/2008 13:19:07
 
 
To
10/01/2008 12:38:25
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01280909
Message ID:
01280929
Views:
16
>How can I programatically change the BackColor of a single cell? I will have an RGB combination, and the row I want will be currently selected, but not necessarily the column. I want to be able to change the BackColor of ColumnThisOne for the currently selected row.

If you have Sparse set to .T. for the column, you can simply change the BackColor of the column's Textbox. From another column, something like:

This.Parent.colTheOneYouWant.Text1.BackColor =

If you need Sparse set to .F., you'll have to play with DynamicBackColor for the column. But if you only want to change it for the current row, something based on RECNO() ought to do the trick.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform