Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I dynamically change one cell in a grid?
Message
De
09/08/2001 17:22:00
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00542012
Message ID:
00542036
Vues:
13
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
Fil
Voir

Click here to load this message in the networking platform