> 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
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
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
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