-
Apr 13th, 2006, 12:55 AM
#1
Thread Starter
Lively Member
hex to text, or asc (Solved)
if i have a hex string lets say its 61 how can i convert that to text ... i know you can convert text to hex by say hex("a") but how do i go back to text? chr converts from asc not hex so i cant use that....
Last edited by zhahaman2001; Apr 13th, 2006 at 01:08 AM.
Aim: zhahaman2001
-
Apr 13th, 2006, 12:57 AM
#2
Hyperactive Member
Re: hex to text, or asc
strHex = "61"
text1.text = chr("&H" & strHex)
If my post has been helpful, then please rate it accordingly...
If it has solved your question(s), then don't forget to mark the thread as "[Resolved]"... thank you.
-
Apr 13th, 2006, 01:05 AM
#3
Re: hex to text, or asc
Or if you just want to convert from hex to decimal
VB Code:
Dim strHex As String
strHex = "6a"
Debug.Print "Hex " & strHex & " = " & Val("&H" & strHex) & " Decimal"
Pete
No trees were harmed in the making of this post, however a large number of electrons were greatly inconvenienced.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|