Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP6SP5 Assign UDF() return value to BackColor
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00755334
Message ID:
00755372
Vues:
13
>Hi all
>
>I have this textbox which needs its backcolor to be changed depending on it's value. This is what I have assigned to it:
>
>
=EVAL(THISFORM.ColorCurrency(THIS.VALUE, v_LKmBioChemistry.yHiBilirubinTotal, v_LKmBioChemistry.yLoBilirubinTotal))
>
>I have tried the above with / without EVAL() but no luck. I currently have the following working code in the refresh but want to make the control more self-contained:

How about if you put this in the Textbox.Refresh?
This.BackColor = THISFORM.ColorCurrency(THIS.VALUE, ;
   v_LKmBioChemistry.yHiBilirubinTotal, v_LKmBioChemistry.yLoBilirubinTotal)
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform