>You are correct. SET EXACT was OFF. I just set it back to ON. I was able to compensate by making lcOldCarr_Name = SPACE(1) instead of an empty blank.
>
>When I initialized the lcOldCarr_Name to "", it would not work right with the comparison. So, I changed it to SPACE(1) and it now compares properly.
Changing it to SPACE(1) solves this one case, but leaving SET EXACT OFF is very dangerous
It won't work in cases like this
? 'abcd' <> 'abc'
>Thanks Gregory!
>Cecil
>
>>That is because your SET EXACT is OFF
>
>>replace
>
>IF ALLTRIM(lcCarr_Name) != lcOldCarr_Name
>
>by
>
>if( !(lcCarr_Name == lcOldCarr_Name) )
>
Gregory