[Gambas-user] creasting a timer in module

Fabien Bodard gambas.fr at ...626...
Tue Nov 29 18:39:48 CET 2011


Private hTimer as timer()

Public sub Main()
hTimer= new timer as "MyTimer"
hTimer.Delay =1000
hTimer.Start
end



Public sub MyTimer_Timer()
  Print "hello"
end






2011/11/29 wally <wally at ...2037...>:
> How can i create a Timer in module and use the Timer_Timer event in this
> module without putting a controlwidget on the main Form.
> Can i do the same with SerialPort and SerialPort_Read event ?
>
> thx wally
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fabien Bodard




More information about the User mailing list