Operator is not overloaded: not "AnsiString"
but I get the error: "Operator is not overloaded: not "AnsiString"
So Pascal thinks that you are trying to do: if not (a) = b then ...