
Zitat von
Daniel G:
Mit PHP geht das auch seeeeehr gut....

OHHHHH ja... Und da soll man das erst mal finden...

Zitat von
Helmi:
was auch ein Irrtum sein kann, wäre das hinzufügen eines Eintrages in eine StringList z. B. mittels "Insert" statt "Add"
Warum?

Man kann doch via Insert einen Index angeben. Oder meinst du, dass jeder das Insert für das Add hält?

Zitat von
scrat1979:
... und noch was
Delphi-Quellcode:
sl : TStringList;
[...]
begin
sl := TStringList.Create(nil);
[...]
sl.Free; // wird oft vergessen :)
end;
P.S.: Wie zum Teufe rücke ich denn hier in den Tags ein?!?

Im Antwort-Editor ist es eingerückt

Das hier mag ich noch dazu berichtigen, dass man da doch gleich das try-finally hinzufügt.
Delphi-Quellcode:
var
sl : TStringList;
begin
sl := TStringList.Create(nil);
try
finally
sl.Free; // oder auch FreeAndNil(sl); welches ich all zu gerne nutze
end;
end;
»Remember, the future maintainer is the person you should be writing code for, not the compiler.« (Nick Hodges)