[Gambas-devel] Timer in console application

Fabien Bodard gambasfr at ...4...
Thu Sep 1 22:31:51 CEST 2005


Le Jeudi 01 Septembre 2005 17:08, José L. Redrejo Rodríguez a écrit :
> Does anyone have an example of using a timer without the qt/gtk
> interface?.
> I need to use it in a console application, and Benoît said it was a new
> feature of the 1.9.18 version, but I haven't found the way to make it
> work.
>
>

simply by :

Private tmrTest as timer

PUBLIC SUB _New()
  tmrTest = NEW Timer() AS "tmrTest"
  tmrTest.Delay = 1000
  tmrTest.Enabled = TRUE
END

PUBLIC SUB tmrTest_Timer()

   Print "Hello you ;-)"

END


Regards,
Fabien Bodard





More information about the Devel mailing list