StartTimer

Syntax:

StartTimer( #Timer , MilliSec , @procedure() )

Parameters:

#Timer

=

Timer-Number (0-15)

MilliSec

=

Milliseconds between timer calls

@procedure()

=

timer procedure


Return Values:

#false

=

timer creation failed

<> 0

=

timer handle


Description:

Starts a Timer.


The procedure @procedure() is called every MilliSec.


Example:

  Procedure MyTimer()
    beep_(800,20)
  EndProcedure

  StartTimer( 0, 200, @MyTimer() )
  Delay(5000)

Remarks:

The Timer-Procedure cant have any Parameters and runs

in its own thread, so make needed variables for the

Timer-Procedure SHARED or GLOBAL.



Supported OS:   Windows