Hi again, I found a workaround to my problem. If I put my method in a second class beside the class with the main-routine it works! :D Is this the way it should be? Regards, Andreas