Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DynamicBackColor
Message
From
30/03/2005 04:57:57
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
29/03/2005 13:41:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
00999758
Message ID:
00999885
Views:
46
>Hi,
>
>I have a grid which is displaying information like this:
>
>Age   5yrs   10yrs   20yrs
>50    1235   1345   7676576
>50    3234   54365  658678
>50    87668  87699  768898
>50    76576  65767  09809
>55    876987 090980 09809
>55    765876 989878 768767
>55    876876 785457 6757687
>55    654655 435354 6546565
>60...
>
>and so on, in groups of 4 records per each age.
>
>I want to highlight alternating groups to make it easier to read. What formula can i use to do this?
>
>Thanks.
local lnColor1,lnColor2,myColor
lnColor1 = 0x00FFFF
lnColor2 = 0xFFFF00
Text to m.myColor textmerge noshow
(iif( myAlias.Age % 10 = 0, <<m.lnColor1>>,<<m.lnColor2>>))
EndText
thisform.myGrid.SetAll('DynamicBackColor', m.myColor)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform