Wish a happy and constructive new year to the community.
I am trying to activate a Clock1.Timer to obtain a delay within a loop, so loops will execute in delay one after the other. What I get is the execution of loops at once, that means blocks Clock1.TimerEnabled and Clock1.Timer (see image) are not reached.
Is there any other technique to obtain this delay?
I post blocks which fail to display output in steps of time interval. The output is 1-2-3-4-5- immediately.
Happy new year to you too! You’re enabling the Clock1.Timer 5 times in succession, in the for-loop. You’d have to put the Label1 blocks in the Timer event. Sadly, there seems to be no easy way to wait in a loop.
Moving the Label1 blocks in the Timer event produces just delay of 1s.
In Delphi Pascal is a method named Application.ProcessMessages which allows the app to update changes in components (such as set label text, recolour text etc.), especially useful within long loops. I have not found something similar here.