Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid back color change only for rows with records
Message
From
23/06/2005 17:59:20
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
23/06/2005 01:28:39
Dorin Vasilescu
ALL Trans Romania
Arad, Romania
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01025404
Message ID:
01026083
Views:
17
>>
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform