Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamic forecolor for CmdButton in grid column
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00885644
Message ID:
00885670
Vues:
16
This message has been marked as the solution to the initial question of the thread.
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).
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform