>Hello:
>
>This is probably a very simple issue, but... Are you issuing EXACT ON, because if not SEEK will ALWAYS return .T. and that´s why the ELSE part of your code is not executing.
>
>Hope this helps!
>
>Mao.
Hi, I almost
never SET EXACT ON. And SEEK doesn't behave in the way you describe. With SET EXACT OFF, the default, matching is from the left so
"x"= "xyz"
"xyz"= "x"
"anything at all" = ""
and the same logic applies to SEEK
Regards