Board index » delphi » Convert ASCII Hex String to a word (HexToInt)

Convert ASCII Hex String to a word (HexToInt)

Hi,

I'm using D3.
Delphi has a IntToHex function.
What's the easiest way to convert an ASCII Hex String (i.e. '014E') to a

word?
Is there a third party component, or a way to use Delphi's other
conversion routines?

Thanks,
Frank

 

Re:Convert ASCII Hex String to a word (HexToInt)


I answered my own question.

Use   StrToInt('$4C01');

Sorry.
=============================

Quote
Frank Fortino wrote:
> Hi,

> I'm using D3.
> Delphi has a IntToHex function.
> What's the easiest way to convert an ASCII Hex String (i.e. '014E') to a

> word?
> Is there a third party component, or a way to use Delphi's other
> conversion routines?

> Thanks,
> Frank

Other Threads