reversing a string

i need to reverse a string…i know the basic programming approach of getting length of string and picking last character and placing at start position and go on until we do for total characters of string

is there predefined function in navision for this ?

There is not.

Just out of my own curiosity - under what circumstances would something like this be used?