[thelist] hexidecimal in asp

Ken Schaefer ken at adOpenStatic.com
Tue Jun 1 08:27:27 CDT 2004


[Offlist]

Here is a copy of the message I sent in reply to your previous message. Hope
it helps.

Cheers
Ken


Reading the manual would have solved this for you in a few minutes. I'm
sorry that you've spent hours on this already. The WSH documentation can be
found here. It is an invaluable resource:
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en

I assume that you want to do this in VBScript (rather than JScript)

Numbers in hex can be represented directly by prepending &H. There is a
function to convert decimal to hex, funnily enough is Hex()

<%
' Add 32 and 10 where they are in hex
Response.Write(Hex(&H20 + &HA))

' Add 32 and 10 when they are in decimal format
Response.Write(Hex(32 + 10))
%>

To find this information in the documentation, open it, switch to "Index"
tab, scroll down till you reach "hex function", and view that topic.

Cheers
Ken

----- Original Message ----- 
From: "Lightning" <oktellme at earthlink.net>
To: "thelist" <thelist at lists.evolt.org>
Cc: <thelist-owner at lists.evolt.org>
Sent: Tuesday, June 01, 2004 10:10 PM
Subject: [thelist] hexidecimal in asp


: Hi-
:
: I don't know what it is, but my msgs to the list, jusdt don't arrive, so I
: am writing to the mgr, and ccing the list..
:
: I have just about given up on it. But right now, I am despirate.
:
: Anyone know how to do calculations with hexidecimal in asp?
:
: Or at least, how to convert hex to decimal and decimal to hex.
:
: Thanks, and quick answer needed. I really needed this answer yesterday.
But,
: as I said, letters I write to thelist... they don't bounce back to me...
: they just don't get issued by thelist!
:
: thanks, Laura



More information about the thelist mailing list