Home > comp > gb > timer 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Search  Administration  
THIS WIKI IS DEPRECATED AND IS READ-ONLY. THE NEW WIKI IS THERE.
Documentation  
Warning! This page is not translated.  See english version 
Timer (gb)
This класс implements a timer object.

A timer object raises events, each time it is triggered. The amount of time between each event is specified by the Delay property.

Symbols
This class is creatable.

Properties  Methods  Events 
Delay  Enabled    Start  Stop  Trigger    Timer   

Example

This example demonstrates the usage of the Timer in a Console program.

' Gambas module file

PUBLIC hConsoleTimer AS Timer

PUBLIC SUB Main()

  hConsoleTimer = NEW Timer AS "MyTimer"
  hConsoleTimer.Delay = 1000
  hConsoleTimer.Enabled = TRUE

END

PUBLIC SUB MyTimer_Timer()

  PRINT "Hello Gambas"

END