Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing Text Colors
Message
De
01/08/1999 14:41:46
 
 
À
01/08/1999 14:12:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00248683
Message ID:
00248685
Vues:
19
Hi Bob,

>With a text field on a form how can I have the forecolor set according to the value of the field, i.e. if gender=1 the text should appear in Red, if gender=2 text in blue etc

It sounds like you should be using a checkbox, combobox or option group instead of a textbox to me. Then on in the interactive change event you could put your code.

*INTERACXTIVE CHANGE METHOD
this.forecolor=iif(this.value=1, RGB(255,0,0), RGB(0,0,255))

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform