I'm using foxpro 6.0. I have a string where i need to delete the two rightmost characters from it. I have a string that holds a street name but the direction(N,S,E,W)is at the end of the string and I need it to be at the beginning. The string looks like this.
'ELM ST S'
I need the string to look like this
'S ELM ST'
So far, I've put the ' S' from the end in a separate string and then i plan on moving it to the front. But I can't figure out how to get rid of the ' S' at the end.
Is there a command that will delete a specified amount of characters from the rightmost position? I've all ready tried using chrtran() and strtran() functions but these do not work in my case.
Thanks,
Erik
'ELM ST S'
I need the string to look like this
'S ELM ST'
So far, I've put the ' S' from the end in a separate string and then i plan on moving it to the front. But I can't figure out how to get rid of the ' S' at the end.
Is there a command that will delete a specified amount of characters from the rightmost position? I've all ready tried using chrtran() and strtran() functions but these do not work in my case.
Thanks,
Erik