Clear Collection Data at once

Hi,

What’s doing exactly the “$w(‘#text1’).text = String(i);” part. I put the code into a button (just for testing) and it is not working. I had to comment that part since I’m not sure where to point.

Please, advice.

Thanks in advance.