The eccoMAGIC Forums
http://forums.eccoMAGIC.com/forum/YaBB.pl
the SLANG EXTENSION and Guest Programming >> Slang Rules Scripts, Functions, Examples and HOW TO >> Having fun with the Color folder
http://forums.eccoMAGIC.com/forum/YaBB.pl?num=1533324199

Message started by cjholly on 08/03/18 at 14:23:19

Title: Having fun with the Color folder
Post by cjholly on 08/03/18 at 14:23:19

I barely understand slang rules, but borrowing from others I came up with a rule that removes color from Done items, turns past due To-Do's orange and current and future To-Do's green, and current and future Appointments with an A: or O: magenta and with HRG: red, and removes color from past hearings and appointments.

++:!+-MN:          
iff(gfv('Done') > 0, "",          
iff(gfv("To-Do's") > 0, (iff(gfv("To-Do's") < TODAY, 0x0099FF, 0xFF0000)),          
iff(gfv("Appointments") > 0,
     (iff(gfv("Appointments")>=TODAY&&(left(itt,2)=="A:"||left(itt,2)=="O:"),0xFF00FF,
           (iff(gfv("Appointments")>=TODAY&&left(itt,2)=="HR",0xFF,
"")))),      
"")))        
:          
[To-Do's] or [Appointments] or [Done]


I cannot remember where the skeleton of the above came from, and I am sure it is not the most elegant way to do it, but for now, I am just glad I got it to work without bother my fellow eccolytes overmuch.  --Chris Holly

The eccoMAGIC Forums » Powered by YaBB 2.1!
YaBB © 2000-2005. All Rights Reserved.