One other way
** here's your string
lcstring = [This is the winter of our discontent.]
** count the number of spaces
icount = occurs([ ],lcstring)
** get the position of the last space
iat = atc([ ],lcstring,icount)
** pull the value after that.
?substr(lcstring, iat+1)
>How can I find the last word in a text string.
>
>Thanks
>
>Brenda
Fred Lauckner
You know, it works on my computer. I don't know what your problem is.
.Net aint so bad.