IntToHex Function
IntToHex returns the hex representation of an
integer.
Unit
SysUtils
Category
numeric formatting routines
function IntToHex(Value: Integer; Digits: Integer):
string;
Description
The
IntToHex function converts a number into a string containing the number's
hexadecimal (base 16) representation. Value is the number to convert. Digits
indicates the minimum number of hexadecimal digits to
return.
-----------------------------------------------------------------------------------------------------------------------------
StrToInt Function
StrToInt converts a string representing an integer
(decimal or hex notation) to a number.
Unit
SysUtils
Category
type
conversion routines
function StrToInt(const S: string):
Integer;
Description
The
StrToInt function converts a string representing an integer-type number in
either decimal or hexadecimal notation into a number. If the string does not
represent a valid number, StrToInt raises an EConvertError
exception.
N.B.
Precede a hex number with a $ when passing to StrToInt
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jeremy Coulter
Sent: Saturday, 6 January 2001 22:39
To: Multiple recipients of list delphi
Subject: [DUG]: Converting to HEXHI all. anyone know how to convert a value into hex in Delphi ? VB has a nice function called HEX() which does it is.But I hav not had to do this in Delphi before, so not sure if there are any functions.If not, anyone got some cod eto do it ?It took me 2 minutes to look that up in the help, surely you could have done the same thing?=======================================================================
Patrick Dunford, Christchurch, NZ - http://pdunford.godzone.net.nz/
I will sing to the LORD all my life; I will sing praise to my
God as long as I live. May my meditation be pleasing to him, as I
rejoice in the LORD.
-- Psalm 104:33-34
http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20010106
=======================================================================
Created by Mail2Sig - http://pdunford.godzone.net.nz/software/mail2sig/