>1) You almost certainly want to use my() and not local() 2) If this does not fix the problem, can you >send the whole script script to me, I'd like to be able to run all commands :-)>
I changed all the local’s to my’s in my code, and the problem stays the same. So I append below my ugly, personal, unreadable code (it compiles fine though). (in that new version, items number %26 and %27 should be equal and they are not).