Autor Beitrag
nina
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62



BeitragVerfasst: Fr 24.01.03 15:08 
Hallo!

Ich habe einen Code gefunden mit dem ich die Cookies löschen kann, allerdings geht da eine Kleinigkeit nicht! Der Code sieht folgendermaßen aus.

ausblenden volle Höhe 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:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
if cookies.Checked then begin
  cookies1.Items.BeginUpdate;
  cookies1.Items.Clear;
  dwSize  := 65536;
  icei    := AllocMem(dwSize);
  try
    hSearch := FindFirstURLCacheEntry('cookie:',icei^,dwSize);

    if hsearch = 0 then
        exit;               Hier liegt das Problem!!!!!!!

   while hSearch <> 0 do
    begin
      Application.ProcessMessages;
      cookies1.Items.Add(icei^.lpszSourceUrlName);
      dwSize := 65536;
      if not FindNextURLCacheEntry(hSearch,icei^,dwSize) then
      begin
        hsearch := 0;
      end;
    end;
  finally
    FreeMem(icei,65536);
    cookies1.Items.EndUpdate;
  end;

  for i := 0 to cookies1.Items.Count-1 do
  begin
    cookies1.Checked[i] := true;
    if cookies1.Checked[i] then
    begin
      DeleteURLCacheEntry(PChar(cookies1.Items[i]));
    end;
  end;
  ehead_delete.Click;


Das Problem liegt an dem exit. Jedes mal wenn ich das Programm starten möchte dann bringt er mir diese Fehlermeldung.
Anweisung erforderlich, aber Ausdruck vom Typ 'TButton' gefunden

Weiss jemand warum???

nina


Zuletzt bearbeitet von nina am Fr 24.01.03 15:22, insgesamt 2-mal bearbeitet
Popov
Gast
Erhaltene Danke: 1



BeitragVerfasst: Fr 24.01.03 15:20 
Was mich angeht, so feht am ende ein

ausblenden Quelltext
1:
end;					
nina Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62



BeitragVerfasst: Fr 24.01.03 15:31 
Das hab ich da zwar vergessen, aber wenn ich es hin mach, dann bringt er mir trotzdem die Fehlermeldung.

nina
Popov
Gast
Erhaltene Danke: 1



BeitragVerfasst: Fr 24.01.03 17:00 
Anweisung ist Anweisung.

Du bekommst die Fehlermeldung an der Stelle. Das bedeutet aber nicht, daß das die fehlerhafte Zeile ist.
nina Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62



BeitragVerfasst: So 26.01.03 13:40 
Woran liegt es dann? Sieht das vielleicht jemand? Schon mal danke im vorraus!

nina
foxy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 814

Ubuntu, Gentoo
C++, PHP, Java, Ruby, Perl (Eclipse)
BeitragVerfasst: Mo 27.01.03 09:23 
guden nina
könntest du mal deine deklarationen hinschreiben vielleicht hilft das ... also wie Popov schon gesagt hat auf anhieb sehe ich auch nix nur, das ein end; fehlt ... aber wenn es daran nicht liegt vielleicht an deiner Deklaration ???

_________________
"Only wimps use tape backup: real men just upload their important stuff on ftp, and let the rest of the world mirror it." (Linus Torvalds)
OperatingSystem Laptop (Ubuntu Hardy)