Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP6SP5 Assign UDF() return value to BackColor
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00755334
Message ID:
00755372
Views:
9
>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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform