Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DynamicBackColor invalid expr if the grid has focus else
Message
From
23/05/2008 03:24:18
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01318705
Message ID:
01319170
Views:
22
>As someone said, the problem may lie in the fact you're using this in your expression. What this is referring to?

My statement was ambiguous, sorry.
What I meant was that readibility of an IIF()/iCASE() expression inside a property is worse than a multi-line method anyway.
And that additionally the fact that "This" inside a grid.Column.Dynamic* expression refers to the grid, as opposed to the Column, is not extremely obvious.

So I believe it might be safer and easier for the OP to reduce the .Dynamic* expression to something like "goApp.something()" or "This[form].myMethod()".
In that method he could care for availability of object references and might also get rid of any Public/"private" variables.



Regards
-Stefan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform