|
-
Aug 10th, 2005, 11:03 PM
#1
Conver Hex? to Chr() ?
What is this:
\xFE\xFD\x00\x10\x20\x30\x40\xFF\xFF\xFF\x01
in Chr #'s?
Chr(254) & chr(253) & Chr(0) & ??
No clue! help!
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Aug 10th, 2005, 11:12 PM
#2
Hyperactive Member
Re: Conver Hex? to Chr() ?
Chr(254) & chr(253) & Chr(0) & chr(16) & chr(32) & chr(48) & chr(64) & chr(255) & chr(255) & chr(1)
When your dreams come true.
On error resume pulling hair out.
-
Aug 10th, 2005, 11:17 PM
#3
Re: Conver Hex? to Chr() ?
VB Code:
Option Explicit
Public Function HexToStr(ByVal Hex1 As String) As String
Dim strTemp As String, strReturn As String, i As Long
Hex1 = Replace(Hex1, " ", "")
If Len(Hex1) Mod 2 <> 0 Then Exit Function
For i = 1 To Len(Hex1) Step 2
strReturn = strReturn & Chr(Val("&H" & Mid(Hex1, i, 2))) & " "
Next i
HexToStr = Mid(strReturn, 1, Len(strReturn) - 1)
End Function
Private Sub Form_Activate()
Dim SpltStr() As String, i As Integer
SpltStr() = Split(HexToStr("FE FD 00 10 20 30 40 FF FF FF 01"), " ")
For i = 0 To UBound(SpltStr)
If SpltStr(i) <> vbNullString Then MsgBox Asc(SpltStr(i))
Next i
End Sub
-
Aug 11th, 2005, 07:59 AM
#4
Re: Conver Hex? to Chr() ?
I like that Remix.. cool
Dream.. are u sure thats right? I came up with this:
Chr$(254) & Chr$(253) & Chr$(0) & Chr$(4) & Chr$(5) & Chr$(6) & Chr$(7) & Chr$(255) & Chr$(255) & Chr$(255) & Chr$(1)
which seems to work.. the server sends all the data back now!!
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
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
|