<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>26 Aug 2018 23:51:00 Z</lastBuildDate><pubDate>25 Aug 2018 21:27:00 Z</pubDate><description>Hi All&#13;
&#13;
I am needing to change the colour of a control in a looper based on a condition. Here is the code I have tried:&#13;
&#13;
TheMax is int = LOOP_MyLooper..Occurrence&#13;
&#13;
FOR Rec = 1 TO TheMax&#13;
&#13;
IF LOOP_MyLooper.ATT_MyStatus[Rec]..Value = "MyCondition" THEN&#13;
LOOP_MyLooper.ATT_MyStatusColor[Rec]..Color = DarkGreen&#13;
END&#13;
&#13;
END&#13;
&#13;
Attribute MyStatus is set to Value&#13;
Attribute MyStatusColor is set to Color&#13;
&#13;
Any ideas what I am doing wrong?&#13;
&#13;
Cheers&#13;
André</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66743-wdm22-change-color-looper/read.awp</link><title>WDM22 - Change Color In Looper</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66743-wdm22-change-color-looper-66752/read.awp</comments><pubDate>26 Aug 2018 23:51:00 Z</pubDate><description>Howdy&#13;
&#13;
Thanks Peter - understood.&#13;
&#13;
Thanks Fabrice - understood - you will notice that I have an attribute linked to the colo…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66743-wdm22-change-color-looper-66752/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66743-wdm22-change-color-looper-66752/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66743-wdm22-change-color-looper/read.awp">WDM22 - Change Color In Looper</source><title>Re: WDM22 - Change Color In Looper</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66743-wdm22-change-color-looper-66751/read.awp</comments><pubDate>26 Aug 2018 00:29:00 Z</pubDate><description>Hi André,&#13;
&#13;
to complete Peter's message&#13;
&#13;
An attribute is NOT a control where you can use properties.&#13;
An attribute is linked …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66743-wdm22-change-color-looper-66751/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66743-wdm22-change-color-looper-66751/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66743-wdm22-change-color-looper/read.awp">WDM22 - Change Color In Looper</source><title>Re: WDM22 - Change Color In Looper</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66743-wdm22-change-color-looper-66750/read.awp</comments><pubDate>25 Aug 2018 21:41:00 Z</pubDate><description>Hi,&#13;
&#13;
IF LOOP_MyLooper.ATT_MyStatus[Rec]..Value = "MyCondition" THEN&#13;
LOOP_MyLooper.ATT_MyStatusColor[Rec]..Color = DarkGreen&#13;
…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66743-wdm22-change-color-looper-66750/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66743-wdm22-change-color-looper-66750/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66743-wdm22-change-color-looper/read.awp">WDM22 - Change Color In Looper</source><title>Re: WDM22 - Change Color In Looper</title></item></channel></rss>
