Dear both - many thanks for suggestions. This code snippet is a small piece taken from about 2000 lines of code, so it will take me a little while to create a self-sufficient code snippet. I'll try Tim's suggestion first then try to extract the relevant pieces.
Thanks again,
Christoph
