Hi Peter,
I wanted to introduce your LINQ script and it works somehow (or better has no exceptions) but logic seems is not what i want (maybe I was not clear) so I reproduced the logic attached in old way and would be very nice to have the correspond LINQ script.
Thanks. Br. Marco.
