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
ok Marc...i'll try it...thanks.;-)
Marc Miralles wrote:
>
> yes Sergio, it works perfectly on gambas. I Think at this moment is a
> good solution for make reports in gambas
>
> I test this in gambas 2.12
>
> Here the code in gambas, it's very easy:
>
> PUBLIC FUNCTION kugar
> DIM flnam
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