Was soll das
Delphi-Quelltext
1:
| form6.listbox1.Items.LoadFromFile('paramstr(0)+.antipopup.txt'); |
denn?
Wenn dann müsste es heißen
Delphi-Quelltext
1:
| form6.listbox1.Items.LoadFromFile(paramstr(0) + '.antipopup.txt'); |
Wenn dein Programm C:\Prog\app.exe heißt, dann wird nun die Datei C:\Prog\app.exe.antipopup.txt geladen.
Ich vermute aber, dass du die Datei antipopup.txt, die im gleichen Verzeichnis wie dein Programm liegt, laden willst.
Das geht so:
Delphi-Quelltext
1:
| form6.listbox1.Items.LoadFromFile(ExtractFilePath(paramstr(0)) + 'antipopup.txt'); |
Ich würde das:
Delphi-Quelltext
1: 2: 3: 4: 5: 6:
| c:=0; repeat if newwindow.WebBrowser1.LocationURL = form6.listbox1.Items[c] then begin newwindow.Close; c:=(form6.listbox1.Items.Count-1) end else c:=c+1; until c=(form6.listbox1.Items.Count-1); end; |
vielleicht mal ein bisschen ordentlicher schreiben. Zeilenumbruch, Einrückung, Shift-Taste usw... So wirst du sonst nicht mehr lange mit deinem Quelltext zurechtkommen.
Guckst du hier:
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12:
| c:=0; repeat if (newwindow.WebBrowser1.LocationURL = form6.listbox1.Items[c]) then begin newwindow.Close; c := (Form6.Listbox1.Items.Count -1) end else c:=c+1; until c = (Form6.Listbox1.Items.Count -1); end; |
oder Vermögensschäden, die durch das Benutzen des Textes entstehen.