Board index » delphi » converting hex string to decimal/integer [D3]

converting hex string to decimal/integer [D3]

In Delphi 3 converting a number to a hex string is possible using the
Format command but how do you get a number from a hex string? Basically
I want a HexStrToInt function I guess. I could write such a function
myself but I am sure its been done before but a search on the web did
not find anything.

--
DIGITAL PROSPERITY PTY LTD  phone: +61 3 9761-3885
P.O. Box 557                fax:   +61 3 9761-3811
Boronia, Victoria 3155
http://www.luck-e-lotto.com.au

Sent via Deja.com http://www.deja.com/
Before you buy.

 

Re:converting hex string to decimal/integer [D3]


Quote
digitalprosper...@my-deja.com wrote:

> In Delphi 3 converting a number to a hex string is possible using the
> Format command but how do you get a number from a hex string? Basically
> I want a HexStrToInt function I guess. I could write such a function
> myself but I am sure its been done before but a search on the web did
> not find anything.

> --
> DIGITAL PROSPERITY PTY LTD  phone: +61 3 9761-3885
> P.O. Box 557                fax:   +61 3 9761-3811
> Boronia, Victoria 3155
> http://www.luck-e-lotto.com.au

> Sent via Deja.com http://www.deja.com/
> Before you buy.

StrToInt('$FF');

Alex
--
** Pepsi Cola and animal protection **
**  http://www.pepsi{*word*76}bath.com/  **

Author of the free Chatsystem PINO! || Website: http://www.alcomp.net
Available at http://pino.cjb.net    || Chat   : pinochat.dhs.org:8080

Re:converting hex string to decimal/integer [D3]


Hey, cool. It even says this in the help! :)

thanks

In article <38978FC8.6875F...@gmx.at>,
  Alexander Mueller <al...@gmx.at> wrote:

Quote
> digitalprosper...@my-deja.com wrote:

> > In Delphi 3 converting a number to a hex string is possible using
the
> > Format command but how do you get a number from a hex string?
Basically

> > --
> > DIGITAL PROSPERITY PTY LTD  phone: +61 3 9761-3885
> > P.O. Box 557                fax:   +61 3 9761-3811
> > Boronia, Victoria 3155
> > http://www.luck-e-lotto.com.au

> > Sent via Deja.com http://www.deja.com/
> > Before you buy.

> StrToInt('$FF');

Sent via Deja.com http://www.deja.com/
Before you buy.

Other Threads