We Recommend

Programming for the Newton: Using Macintosh Programming for the Newton: Using Macintosh
The included CD contains a demo of the Newton Toolkit (NTK) programming environment, but there is a newer version of this software on Apple's web site. Note that the demo version creates Newton packages which can't be redistributed, so you'll eventually need to purchase a full copy of NTK.


Posted By

Nix on 08/26/08


Tagged

stringhexhexadecimal


Versions (?)


String to Hexadecimal


Published in: Delphi 


Works great ;)

  1. function String2Hex(const Buffer: Ansistring): string;
  2. var
  3. n: Integer;
  4. begin
  5. Result := '';
  6. for n := 1 to Length(Buffer) do
  7. Result := LowerCase(Result + IntToHex(Ord(Buffer[n]), 2));
  8. end;

Report this snippet 

You need to login to post a comment.