How do you know that lcValue is an empty string? Maybe it only looks like an empty string but has some non-printable character in it.
>
>After installing SQL Server 2005, my VFP projects started to give some errors, on my lines with EMPTY() function.
>
>It seems that EMPTY() doesn't return .t. if the variable is "".
>
>Example:
>
>IF EMPTY(lcValue)
> * It's entering here if lcValue = .f. but not if lcValue = ""
>ENDIF
>
>
>Any idea? Could it be any property of remote views or cursors...?
>
>
>Best regards,
>
>
>Ricardo Almeida
--sb--