[Lazarus] Error: Wrong number of parameters specified for call to "HttpWork" & WINCE

sanmiolade ilesanmiolade at yahoo.com
Sun Jan 19 12:34:57 CET 2014


I get this error 
Error: Wrong number of parameters specified for call to "HttpWork"

Below is my code ....Please help

procedure TForm1.Button1Click(Sender: TObject);
var
  Http: TIdHTTP;
  MS: TMemoryStream;
  downloadFileName : string;
begin
  Http := TIdHTTP.Create(nil);
  try
    MS := TMemoryStream.Create;
    try
      Http.OnWork:= HttpWork;

      Http.Get(edt2.Text, MS);
      downloadFileName :=ExtractFilePath(Application.ExeName) +
'\testfilex';
      MS.SaveToFile(downloadFileName);

    finally
      MS.Free;
    end;
  finally
    Http.Free;
  end;
                         




--
View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Error-Wrong-number-of-parameters-specified-for-call-to-HttpWork-WINCE-tp4035489.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.




More information about the Lazarus mailing list