Forum: Sonstige Fragen zu Delphi
Delphi
by Luckie,
17. Jun 2007
Und meine StringList heißt sl.
Forum: Sonstige Fragen zu Delphi
Delphi
by Luckie,
17. Jun 2007
var
MyIntArray: array of Integer
i: Integer;
begin
SetLength(MyIntArray, sl.Count);
for i := 0 to sl.Count - 1 do
begin
MyIntArray := StrToInt(sl.Strings);
end;
Forum: Sonstige Fragen zu Delphi
Delphi
by Luckie,
17. Jun 2007
Wo ist das Problem, die StringListe in ein Array zu packen? In einer Schleife durchgehen und in das Array schreiben.
Forum: Sonstige Fragen zu Delphi
Delphi
by Luckie,
17. Jun 2007
@fkerber: Das funktioniert nicht. Die Stringliste sortiert alphanummerisch:
1
10
2
3
4
40
41
5
...