Posted By

Nix on 08/26/08


Tagged

decimal integer hexadecimal


Versions (?)

Hexadecimal to Integer


 / Published in: Delphi
 

Works great ;)

  1. function hexaToInt(s : string) : Int64;
  2. begin
  3.  
  4. if (s <> '') and (s[1] <> '$') then
  5. result := strToInt64('$' + s )
  6. else
  7. result := strToInt64(s);
  8. end;

Report this snippet  

You need to login to post a comment.