General information
Category:
Forms & Form designer
>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.
> 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?
>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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only