loop only runs once

countrypaul:
Using sizeof (tile) will surely return the number of bytes in tile and since it is an integer array twice the value you want.

Paul

Sorry my bad, I'm accustomed to typeless languages :cold_sweat:

Glad to help, Boffin1 :slight_smile: