Thank you NtSC:
Maybe that is the only one thing I could do to perform what the code is doing in the process.
I have to test it. I am trying now to code all that the original program does in that routine of my interest, but it is a little bit hard.
Cheers
Nacho_dj