[Gambas-devel] Timer in console application

Benoit Minisini gambas at ...1...
Thu Sep 1 20:06:46 CEST 2005


On Thursday 01 September 2005 17:08, José L. Redrejo Rodríguez wrote:
> 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.
>
>

It works exactly the same way as before :-)

PRIVATE MyTimer AS Timer

...

MyTimer = NEW Timer AS "MyTimer"
MyTimer.Delay = 500
MyTimer.Enabled = TRUE

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the Devel mailing list