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

2017-03-29 Thread Rolf-Werner Eilert
Am 27.03.2017 21:29, schrieb Riccardo: > 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 >

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

2017-03-28 Thread Riccardo
Thank you both for the clarification ... both GAMBAS, and this forum, are amazing! -- View this message in context: http://gambas.8142.n7.nabble.com/Help-with-Observer-Stop-Event-tp58715p58720.html Sent from the gambas-user mailing list archive at Nabble.com. --

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

2017-03-27 Thread Benoît Minisini
Le 27/03/2017 à 22:18, Tobias Boege a écrit : > On Mon, 27 Mar 2017, Riccardo wrote: >> 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.val

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

2017-03-27 Thread Tobias Boege
On Mon, 27 Mar 2017, Riccardo wrote: > 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 > v

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

2017-03-27 Thread Riccardo
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,