Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

WDM22 - Change Color In Looper (2 replies)

$
0
0
Hi All

I am needing to change the colour of a control in a looper based on a condition. Here is the code I have tried:

TheMax is int = LOOP_MyLooper..Occurrence

FOR Rec = 1 TO TheMax

IF LOOP_MyLooper.ATT_MyStatus[Rec]..Value = "MyCondition" THEN
LOOP_MyLooper.ATT_MyStatusColor[Rec]..Color = DarkGreen
END

END

Attribute MyStatus is set to Value
Attribute MyStatusColor is set to Color

Any ideas what I am doing wrong?

Cheers
André

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>