DELPHI XE7 [dcc32 Error] E2250 There is no overloaded version of 'Pos' that can be called with these arguments -
Delphi XE7 on Win7 32 bit code: Error: Thanks in advance After the argument for the text "Itemprop =" text "> You have
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;
[dcc32 error] Unit1.pas (49): E2250 is there that can be said with either of 'status' How to fix the code
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: 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
Post a Comment