Posts

Showing posts with the label There is no overloaded version of '%s' that can be called with these arguments

E2250 There is no overloaded version of '%s' that can be called with these arguments Delphi error

While migrating our legacy project from Delphi 7 to Delphi XE5, we encountered " E2250 There is no overloaded version of '%s' that can be called with these arguments " error many times. The codes were written in Delphi 7 which were working fine but raised the error when compiled in Delphi XE5 or later. We faced the error on statements where we have called functions like  Pos , StrPas , StrCopy , Offset , StrToInt64 etc. So here for help to others, I will explain why we get this error and how to solve it. Some errors we faced frequently. E2250 There is no overloaded version of 'Offset' that can be called with these arguments E2250 There is no overloaded version of 'StrCopy' that can be called with these arguments E2250 There is no overloaded version of 'StrToInt64' that can be called with these arguments Why we get this error ? This error occurs when we attempt to call a overloaded function with invalid arguments or cannot be resol...