>I have a string which contains spaces. I a trying to locate the last space in the string. however rat() seems to deliver a zero.
>
>cstr = "Mary Hellen Bell"
>
>result = rat('',alltrim(cstr)) result = 0
'' is not the same as ' ' - RAT(' ',ALLTRIM(cStr)) should work (ie it does work if I try it.)
>
>shouldn't rat() return a 12. What gives?
>
The empty string '' is not equivalent to a space.