DELPHI XE7 [dcc32 Error] E2250 There is no overloaded version of 'Pos' that can be called with these arguments -


itemprop = "text">

Delphi XE7 on Win7 32 bit code:

  Process TForm1.IdMappedPortTCP1Execute (AContext: TIdContext ); (Position ('Connect', AContext) & lt; & gt; 0) or (Position ('Received', AContext) & lt; & gt; 0) or (Position ('POST', AContext) <0 (OR) (Pos ('HEAD', AContax) & lt;> 0) Then (....) Sleep (100); End;  

Error:

  [dcc32 error] Unit1.pas (49): E2250 is there that can be said with either of 'status' How to fix the code  

Thanks in advance After the argument for the text "Itemprop =" text ">

pos are two strings. The function searches for the first occurrence (first parameter) of a substring inside a string (the second parameter). The function is documented here:

You have AContext type TIdContext which is passing and that is not a string. To fix the code, you need to pass the string that contains the text in which you want to search.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -