You try to display only one array element and especially the array[4] element that does not exist. You have defined from 0 to 3 (4 elements) and the variable counter after the end of the For-Next loop ends up with the value of 4.
So you try to display an non-existence variable, that could have a random value.
Steve has given you an example to display the variable within the loop and should work as you expect.
Ioannis
Bookmarks