Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement