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é
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é