Hi,

I have made another test. My code doesn't work if I insert it into a "switch-case" statment. I have removed "switch" statment and now it works.

Thanks for replying,