Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid back color change only for rows with records
Message
De
23/06/2005 17:59:20
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
23/06/2005 01:28:39
Dorin Vasilescu
ALL Trans Romania
Arad, Roumanie
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01025404
Message ID:
01026083
Vues:
19
>>
>>First off, you don't need the Transform() - the parameter expected is an integer.
>>
>
>If you put Integer in Dynamic... properties doesn't work, it needs a string.

Right - it wants a string that it can eval()uate. Except that there's no point of putting a fixed number into a dynamic*color property - it's not dynamic at all, it's just a number.

>>This.SetAll( "DynamicBackColor", ;
>> 'IIF(!EMPTY(THIS.CURRENTCONTROL.VALUE), 0xFFFFFF, ';
>>+transform(thisform.backcolor)+')',"Column" )
>
>This doesn't work either.

Because of THIS.CURRENTCONTROL.VALUE - should be an alias.field expression, or something starting with thisform. Generally, I'm still not quite sure of the context in which the dynamic properties get evaluated. For DynamicCurrentControl just a simple control's name is enough. For anything else, I still don't know whether it's evaluated as if it was in the column's method code, or what. Could put a simple UDF there with a breakpoint, and see for myself. Just never got around to it, because the alias.field syntax works each time.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform