Hex value to character?

jatfill

Registered User.
Local time
Today, 12:52
Joined
Jun 4, 2001
Messages
150
Is there a way to convert a given hex value into it's corresponding character? If you look at http://www.asciitable.com/ as a reference, what I want to do is this:

If a text box has a value of 64, I want to be able to return the subsequent character, in the case of 64 it would be d.

[This message has been edited by jatfill (edited 12-04-2001).]
 
This function should do it:

Public Function HexChar(intHex)
Dim hexNum
hexNum = "&H" & intHex
HexChar = Chr(CInt(hexNum))
End Function
 

Users who are viewing this thread

Back
Top Bottom