Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do i color code text boxes based on db?
Message
From
12/01/2002 14:04:20
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00594778
Message ID:
00603929
Views:
22
>Hi Guys,
>
>This is still not working for me. In the forecolor property of my text boxes i have "=f_color(this.value)".
>
>and in the f_color function, i am doing something simple like
>
>Do Case
>Case 1
> RETURN RGB(50,50,50)
>Case 2
> RETURN RGB(100,100,100)
>otherwise
> RETURN RGB(200,200,200)
>endcase
>
>When I run there are no errors but the font color is always black. What am I doing wrong?

The property should go without the = sign into the DynamicForeColor property of the column, not of the textbox. Tried, works.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform