This is probably a bit anal but the mid$ statement accepts a literal as the mainstring$.
There is no way a compiler can detect an issue so it has to be done with the translator. I am not very good when it comes to following the Stk$[], Ndx code.
I know it's not a big concern but my ocd tells me a procedure should not get a literal when it wants a char*
James