Thanks Bonnie, that's all as I thought. Hopefully today I'll get a chance to run the code, and see if the value I-1 for array elements passes OK.