A timer component is used to execute code after a certain time has elapsed or at specified intervals. The code to be executed is written in the Tick event of the timer.
You can use it, for example, to show and hide an image every time after a certain number of milliseconds have elapsed. The number of milliseconds is set in the Interval property of the timer. You could also use a timer to display a message or end an application after a set period of time.
The timer has a Start and a Stop method:
EVTROUTINE HANDLING(#PHBN_1.Click)
Invoke #TIMR_1.Start
ENDROUTINE
The following code alternately displays and hides an image at every tick of the timer:
EVTROUTINE HANDLING( #TIMR_1.Tick )
if '#imge_1.Visible *EQ true'
set #imge_1 visible(false)
else
set #imge_1 visible(true)
endif
ENDROUTINE