Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Nadya
Sorry. I'm still being dense.
>>If I set the property as you suggest: thisform.GetMyColor(EVAL(this.controlsource))
I get Expression is invalid. Use a valid expression for DYNAMICBACKCOLOR property
and the method is not even called.
>>
>
>I doubt, you can do it from the property sheet, if it's what you meant.
Why not? My method executes. And it's returning an RGB value.
> I allways do it in a code... and you should surround the whole expression with quotes.
Not in the property sheet. If you want a method, then one would want the "=" woudln't one?
>Thisform.MyColor(MyTable.myField) should be in quotes. I have it working just fine in couple of projects.
That's great. But in code I gather. So I put
this.column4.DynamicBackColor = "thisform.getmycolor(eval(this.controlsource))"
In my grid init() and I get the same error. Note,the function is being evaluated (although only once).
Oh, well.
Précédent
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