Just set the .cColor = to the new color.
Example: Add an led (named led1) to a form and add a button with the following:
if thisform.led1.cColor = "Blue"
thisform.led1.cColor = "Red"
else
thisform.led1.cColor = "Blue"
endif
Now click the button and the led will change colors each time it's clicked. Note: The LED has to be on to see the color change. You can turn it on with the .flick method
hth
>Does anyone know how to change the color of the LED class by program code?
>
>Thanks
>
>Colin Northway
Roi
'MCP' Visual FoxPro
In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!