Thanks a lot guys for your help with translating the code, I finally got it done and it just find it so interesting how the behaviour of different development environments can affect the performance of code }:^(
Thanks to all of you for your input and have a good day
For every bug fixed, there is a bigger bug not yet discovered.