Then do you know that the first index of an array is 0 and not 1?
"GetArray cell 0 5" takes the 6th element, just like 'i'.
i'm ok with that
The script seems correct, I don't see issues except a possible problem caused by the first instruction that may make "putarray 0 -1 Name" to work from Ncount instead of 0.
You are right. I removed "PutArray 0 Ncount 0" and it works.
But how i should initialize an array?
Ncount is number of strings in Name table
It's highly suggested to pre-allocate the array if you know the max value, example: PutArray 0 FILES 0