Thanks for your help, Bob and Magnus :) Your solutions is just elegant. I guess you have to get experience in recursive methods to find the most elegant way? Whatever i learned something and I'm thankful. Great list this is ;) -- Andreas Zwinkau | web: andi.dasstellenwirinsinternet.de | mail: andi@buxach.de | jabber: beza1e1@amessage.de