Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I dynamically change one cell in a grid?
Message
 
 
To
09/08/2001 19:57:11
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00542012
Message ID:
00542102
Views:
24
>>I've realized on the way home in train, that eval(this.controlsource) was your problem.
>
>Really? But why? It's evaluated, as I believe I mentioned, in the method call just fine.

I can not explain. It just doesn't look right...
>
>> If I would write it in code, I would put:
>>this.DynamicBackColor="thisform.MyBackColor("+this.ControlSource+")"
>

>Boy, it's a day of confusion for me. What is the plus-sign delimiters for?

The whole string is now this.DynamicBackColor="thisform.myColor(MyTable.MyField)", which is perfectly valid expression.

>>I don't see a way to do in a property sheet.
>
>Nor in code. With an EVAL(). If I made the assignment to DynamicBackColor in the grid init, VFP still complained. I had to just give up on the EVAL(). I think it's something about how EVALs are evaluated, but it's just out of reach in my memory.
>
>> However, you can put thisform.MyColor(MyTable.MyField), if you know the field name. I allways do it in a code, but it's not necessary, as you fairy noted.
>
>Right. Best to try it before saying for sure.

I'll try next time... :)
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform