Disliked{quote} And thank you for your detective work... ;-) I have kind of overseen this, as I thought it was a declaration within the function when I was running through the code. I hate this programming style. For me a function is encapsulated and everything that will be changed should be changed via parameters. But changing a variable of the main program inside a function... tstststIgnored