Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi StrToHex Ersatz (https://www.delphipraxis.net/31921-strtohex-ersatz.html)

Neutral General 15. Okt 2004 19:24

Re: StrToHex Ersatz
 
ok überzeugt :wink:
Ich benötige aber die andere Darstellung, wie sie die Funktion von bigg liefert, was du aber ja nicht wissen kannst ...

Nightshade 15. Okt 2004 19:26

Re: StrToHex Ersatz
 
Jau, richtig, hab ich nicht dran gedacht :oops:


Muss natürlich so aussehen :

Delphi-Quellcode:
function StringToHex(s:string) : string;
var t : integer;
begin
  result := '';
  for t := 1 to length(s) do begin
    if t = length(s) then
      result := result + IntToHex(ord(s[t]),2)
    else
      result := result + IntToHex(ord(s[t]),2) + ' ';
  end;
end;

Neutral General 15. Okt 2004 19:31

Re: StrToHex Ersatz
 
Gut, jetzt funktioniert deine Variante nämlich auch so wie ich es brauche :)


Alle Zeitangaben in WEZ +1. Es ist jetzt 09:45 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz