I have function which is reaction on button click. When I click on the button it should start repeat and write values form an array and show them in labels on main form. Pro
Don't use Sleep function in GUI thread because you are blocking normal message processing and your application behaves strangely.
It is not clear why you use Sleep in your code. Probably you should update labels from OnTimer event handler of TTimer component instead of using a loop.