Not the right but shorter side :)
? 'test' = 'test '
Cetin
>I get .F., .T., for the first two comparisons.
>
>I wasn't aware of the padding with spaces, and thought SET EXACT ON would NOT do this. Interesting.
>
>Wouldn't it be more accurate to say "the string on the right side is padded with spaces, if it is shorter than the string on the left side"? It seams that the string on the left side is not padded.
>
>Hilmar.
>
>
>>This is a common misconception. SET EXACT ON causes the shorter string to be padded with spaces to equal the longer string before they are compared. == is the opnly operator that will actually test for exact equality. That is why I strongly recommend that set exact is never set to ON.
>>
>>
>>lcVar1 = "John"
>>lcvar2 = "John "
>>
>>SET EXACT OFF
>>? lcvar1 = lcVar2
>>? lcvar2 = lcVar1
>>
>>SET EXACT ON
>>? lcvar1 = lcVar2
>>? lcvar2 = lcVar1
>>
>>* SET EXACT anyway you want
>>? lcvar1 == lcVar2
>>? lcvar2 == lcVar1
>>