> How did you determine that it was this line that was taking so long?Well, it took so long even when I type that line alone... I isolated the problem on that line, I'm sure. I have more or less solved my problem with a curious method: I imagined that it had to do somehow with my project (as in other new projects it worked fast), so I re-made the project by saving every window, one by one, worksheets and graphs, and loading them again in a new fresh project, by this conserving my data but avoiding any other strange stuff that could be there after many hours of work over the old project. With this the problem disappeared, and that command run fastly again (and consequently all my scripts where I use it).
This is not the first time that I have to avoid a weird problem by using this method. It is slow, but sometimes is a good solution for the strange, unpredictable behavior of computers and software :-)
jose.