Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Custom backcolor property
Message
From
05/02/1999 11:27:44
 
 
To
05/02/1999 11:22:22
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00184396
Message ID:
00184399
Views:
15
>I would like to have a method return a color to the same object's backcolor property (this object is a text box).
>
>The idea is to make the backcolor of the object to be dependant on the value in the field. The value in the field changes when a user double clicks on the field, or enters invalid data into another textbox.
>
>The problem is that if I put code into the objects refresh method, the color doesn't always update when the value of the textbox changes.
>
>So my brainstorm is to make this.backcolor = mycolor() and then let the refresh method be empty.
>
>The problem is whatever I return from mycolor() throws an error when I try to instantiate the text box.
>
What exactly error message you received? Is 'mycolor' system procedure or custom method?
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform