Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
Delphi 10.2 Tokyo Professional
|
Re: Frage zu Typenlosen Parameter einer Funktion
20. Mär 2010, 16:17
Versuche es mal so:
Delphi-Quellcode:
procedure DoGetData(var Report; const Size: Integer; Retry : Boolean);
var
Data : Array of Byte;
begin
SetLength(Data, Size);
Move(Report, Data[0], Size)
// Weiterer Code
end;
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
|