the above gives that error.had to go back to what i had.
this is the code...
If GetUserLED(1012) Then
SetUserDRO(1010 , GetUserDRO(1010) / 25.400)
SetUserLabel(1,"Inch") 'displays Inch
SetUserLED(1012,0)
Else
SetUserDRO(1010 , GetUserDRO(1010) * 25.400)
SetUserLabel(1,"Metric") 'displays Metric
SetUserLED(1012,1)
End If