You are passing the arguments of the Pos
function in a wrong order, first you must pass the substring to search and then the buffer string.
function Pos(const SubStr, Str: _ShortStr; Offset: Integer): Integer;
function Pos(const SubStr, Str: UnicodeString; Offset: Integer): Integer; overload;
function Pos(const SubStr, Str: _WideStr; Offset: Integer): Integer; overload;
function Pos(const SubStr, Str: _RawByteStr; Offset: Integer): Integer;
Try this
if Pos(#13#10, sl.Text) > 0 then
or
if Pos(sLineBreak, sl.Text) > 0 then