Re: [Gambas-user] behaviour of Last + Timer events

2009-05-11 Thread BenoƮt Minisini
> I got caught recently with a bug - many many weeks to uncover it, until I > did by random chance - a mix-up of what actually was 'Last'. So my question > basically is how Gambas determines what is 'Last'. > > I often use 'Last' in subroutines where I may have several controls which > are the same

Re: [Gambas-user] behaviour of Last + Timer events

2009-05-10 Thread Fabien Bodard
Last is defined by the control that raise the event ... but it's a global variable so if the timer raise during antother event subroutine you will have this kind of problem ... the only way is to save the last value in a local variable. Dim MyLast as Object MyLast = Last 2009/5/10 Doriano B

Re: [Gambas-user] behaviour of Last + Timer events

2009-05-10 Thread Doriano Blengino
richard terry ha scritto: > I got caught recently with a bug - many many weeks to uncover it, until I did > by random chance - a mix-up of what actually was 'Last'. So my question > basically is how Gambas determines what is 'Last'. > > I often use 'Last' in subroutines where I may have several c

[Gambas-user] behaviour of Last + Timer events

2009-05-09 Thread richard terry
I got caught recently with a bug - many many weeks to uncover it, until I did by random chance - a mix-up of what actually was 'Last'. So my question basically is how Gambas determines what is 'Last'. I often use 'Last' in subroutines where I may have several controls which are the same, and I