Autor Beitrag
holgerbremen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 120



BeitragVerfasst: So 10.07.05 21:00 
Hallo,
ich habe eine (wahrscheinlich) ganz einfache Frage.
ich möchte einen Record in einen Buffer kopieren.
ausblenden Delphi-Quelltext
1:
2:
3:
4:
TMyRecord = record
 Tag : array[1..2] of char;
 Monat : array[1..2] of char;
end;

kopieren nach
ausblenden Delphi-Quelltext
1:
chBuffer : array[1..4] of char;					


In C++ würde ich sowas mit einem MemCopy machen. Gibts sowas auch in Delphi?

Gruß
Holger

Moderiert von user profile iconGausi: Delphi-Tags hinzugefügt.
Phantom1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 390



BeitragVerfasst: So 10.07.05 21:19 
Der Befehl heißt in Delphi Move(src, dest, size);

So gehts:
ausblenden Delphi-Quelltext
1:
Move(MyRecord, chBuffer, SizeOf(MyRecord));					


mfg
Phantom1