545
« on: April 28, 2009, 09:00:07 AM »
I have the following code in a button.
There are 4 buttons and I only want the one clicked on to have the led turned on.
Each button has 2 leds.
One is around the button and changes color and the other is a fake button that sits over a transparent button.
The led that is around the button always works.
The led that is a fake button usually does not change.
What am I doing wrong?
If (GetUserLED (1141) = 1) Then
SetUserLED (1141, 0)
Else
If (GetUserLED (1142) = 1) Then
SetUserLED (1142, 0)
Else
If (GetUserLED (1143) = 1) Then
SetUserLED (1143, 0)
End If
End If
End If
SetUserLED (1140 , 1)
Bill