Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-01

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

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

sanmiolade

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;

Reply by email

sanmiolade
to Bart

Thanks it worked....

??? BlackBerry? ????

Earlier message 17 lines
-----Original Message----- From: "Bart [via Free Pascal - Lazarus]" Date: Sun, 19 Jan 2014 06:42:39 To: sanmiolade Subject: Re: [Lazarus] Error: Wrong number of parameters specified for call to "HttpWork" & WINCE On 1/19/14, sanmiolade wrote: Maybe Http.OnWork:= @HttpWork; Bart --

Reply by email