DELPHI XE7 on win7 32bit code:
procedure TForm1.IdMappedPortTCP1Execute(AContext: TIdContext);
begin
if (pos('CONNECT',AContext)<>0) or (pos('GET',AContext)<>0) or (pos('POST',AContext)<>0) or (pos('HEAD',AContext)<>0)
then
(....)
sleep(100);
end;
error:
[dcc32 Error] Unit1.pas(49): E2250 There is no overloaded version of 'Pos' that can be called with these arguments
please help me how to fix that code
thanks in advance