Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
Delphi 10.2 Tokyo Professional
|
Re: Arrays zusammenfügen
5. Mär 2009, 16:20
Hi,
So ginge das mit Move:
Delphi-Quellcode:
var old: Integer;
begin
old := Length(ArrayB);
SetLength(ArrayB,old+Length(ArrayA);
Move(ArrayA[0],ArrayB[old],Length(ArrayA)*SizeOf(ArrayA[0]));
end;
Ich hoffe ich hab keinen Fehler drin
Michael "Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
|
|
Zitat
|