soleilsword:
hmm, I found the mistakes, the datatype of numChars and ndx were wrong
Post the latest version of your program.
Also it is very hard to see what is wrong in the very long text posted in Reply #3 - perhaps you can highlight the errors?
...R