1) They are considered equal 2) They are compared one character at a time 3) The comparison stops when the string on the right is exhausted 4) The result is returnedThis provides for partial string matching which is instrumental in Fox giving you some of the features it does. For example, if you have a last name field that is 35 characters long and you want to SEEK "Smith" to find a Smith record. If strings were not compared this way you would need to;
lcVar1 = "Smith" lcVar2 = "Smith " SET EXACT OFF ?lcVar2 = lcVar1 && True ?lcVar1 = lcVar2 && False ? lcVar2 == lcVar1 && False SET EXACT ON ? lcVar2 = lcVar1 && True ? lcVar1 = lcVar2 && True ? lcVar1 == lcVar2 && FalseThis behavior is due to how the things work. SET EXACT ON will pad the shorter string with spaces to be equal in length with the longer and then compare them in the above mannor. The double equal sign compares the strings in the above mannor and then checks their lengths to see if they are the same.