>>It will work in SQL Server (it strips spaces before determining lenght)but not in VFP.
lcString = SPACE(1)
>>? LEN(lcString)
>
>That's why I also put LEN(ALLTRIM(lcString)) to be more bullet proof if the string handling might contains some spaces.
It begs the question, why not use EMPTY() function?
--sb--