cunderw..you are right. but that had been working well for a while now, because that's part of the main routine which I call from other scripts and return a table array. Only today, I've encountered this kind of problem. I'm not able to understand what's different this time. I'll dig more to figure it out.