
Zitat von
meisteralex:
Wie der Titel schon sagt möchte ich gerne ein Array of Byte in einen String umwandeln, weiß jemand wie man das macht ?
Hi,
ungetestet, aber grob sollte sowas hier klappen (Strings sind auch nur spezielle Arrays of Byte, nicht ganz, aber fast halt):
Delphi-Quellcode:
procedure doFoo(const a: Array of Byte; out s: String);
begin
setLength(s, length(a));
if length(a) > 0 then
begin
move(a[0], s[1], length(a));
end;
end;
Gruß Der Unwissende