Keypad Entry Allowing Values Outside Range

You need to do something like this:[code]spLow = event.source.parent.getComponent(‘ledSetpointLow’).value
spHigh = event.source.parent.getComponent(‘ledSetpointHigh’).value
keyPad = system.gui.showNumericKeypad(event.source.getComponent(‘ledSetPointSpeed’).value)

if keyPad <= spLow:
system.gui.warningBox(“Setpoint too Low”)
elif keyPad >= spHigh:
system.gui.warningBox(“Setpoint too High”)
else:
event.source.getComponent(‘ledSetPointSpeed’).value = keyPad[/code]You only set the property when the value is in the right range. Before you were setting it at the same time you return it from the showNumericKeypad function.