The properites only appears to accept a single color value. you should put your logic in a method in a control on the form such as the textbox's InteractiveChange.
The short answer is that VFP can't interpret the expression (that is, the IIF()) at design time. If you type the expression into the property window, VFP would have to actually execute it as soon as you finish typing. It doesn't work that way.
You need to assign the value in your code. Where you do that depends on how and when the table's logical field gets its value. If the field is present when the form is instantiated, you can put the code in the textbox's Init. If the value of the logical flag changes according to what the user enters in the field, the code could go in the InteractiveChange or the LostFocus.
Hope this helps.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.