[Gambas-user] Help with Observer 'Stop Event'

Riccardo scribe at ...3643...
Mon Mar 27 21:29:06 CEST 2017


I have an observer on a ValueBox control to prevent it changing to zero and
to prevent it becoming larger than the value in a different ValueBox.

Public Sub valNumObserver_change()

  If valNum.value = 0 Then valNum.Value = 1
  If valNum.Value > valDen.Value Then Stop Event

End

With first case, where the zero value is changed to one, works. But the Stop
Event doesn't do what I expect (it does nothing actually) in the second
line...



--
View this message in context: http://gambas.8142.n7.nabble.com/Help-with-Observer-Stop-Event-tp58715.html
Sent from the gambas-user mailing list archive at Nabble.com.




More information about the User mailing list