Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid rows
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00146863
Message ID:
00146910
Views:
22
>In a grid's init, why does this work:
>
>THIS.Column2.DynamicForeColor=;"IIF(table.logical,RGB(255,0,0),RGB(0,0,0))"
>(which is taken straight from the developer's guide)
>
>and this doesn't:
>
>THIS.Column2.Enabled=IIF(table.logical,.T.,.F.)
>
>Kevin Payne

Kevin,

Because;

1) DynamicForeColor is a dynamic property whose expression is evaluated for each row and Enables is not dynamic.

2) The expression you assign to the dynamicforecolor is "IIF(...)" while the assignment to Enmabled is the result of the IIF() function being evaluated.
Previous
Reply
Map
View

Click here to load this message in the networking platform