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.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to