Solved by albanD in post #2 
              
              
                Hi, 
What is your question?  Could you give more context on where you got this code from? What you’re trying to do and what is the issue?