Hi There,
Yes I am very stupid.
That's what you get for using someone else's libraries 🙂
The RAT function called the RCHARINDEX inside it, and I missed the call when I was looking through the source.
So, I decided to re-write the function, and as I was doing do, I found the reference, and before I could log on you asked the question!
Thanks for you response.
Sorry to waste your time.
Regards