Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi word als hex in string konvertieren (https://www.delphipraxis.net/78367-word-als-hex-string-konvertieren.html)

sancho1980 3. Okt 2006 21:52


word als hex in string konvertieren
 
hallo
weiß einer von euch wie ich die Hexdarstellung einer Variable v vom Typ Word in einen String konvertiere.
Also, beispielsweise:

Delphi-Quellcode:
var
  w: Word;
  s: String;

...

w := 65535;
s := GesuchteFunktion(w);
Danach würde s = FFFF sein...hat da einer ne Idee?

Viele Grüße

Martin

Muetze1 3. Okt 2006 21:53

Re: word als hex in string konvertieren
 
Delphi-Referenz durchsuchenIntToHex
Delphi-Quellcode:
s := IntToHex(w, 4);


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:10 Uhr.

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