Thanks a lot, Andrew !
So do I get this right, that I should write:

int i = 0;
and then simply
for( i < period; i++)
?

PS:
And is there a way to get notify of the replies here by mail?
I nearly missed yours.