If pyListSize returns the size of the list and it is 0 based then you need to decrement it. > for Index := 0 to pyListSize - 1 do > begin > {Get each item in the list Just a thought Geraldo Lopes de Souza