Autor Beitrag
bbfan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 164



BeitragVerfasst: Mo 30.01.06 19:45 
Hi!

Habe folgendes programmiert, bekomme aber bei executetarget die Fehlermeldung: "Invalid Enum Value". Warum?
Ich finde den Fehler nicht...
Klammere ich die Zeile OnDownloadProgress aus, dann klappt es.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
procedure tform1.URL_OnDownloadProgress;
begin
  //  pb1.Visible:=true;
    pb1.max:= ProgressMax;
    pb1.position:= Progress;
end;

function tform1.Download_FILE_HTTP(const sURL, sLocalFileName:string): boolean;
var dwn : TDownLoadURL;
begin
  Result:=True;
  dwn := TDownLoadURL.Create(self);
  try
    dwn.URL:=sURL;
    dwn.Filename:=sLocalFileName;
    dwn.OnDownloadProgress := URL_OnDownloadProgress;
    try
      dwn.ExecuteTarget(nil);
    except
      Result:=False
    end;
  finally
    dwn.Free;
  end;
end;
bbfan Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 164



BeitragVerfasst: Di 31.01.06 15:28 
hat keiner ne Idee?