+ Reply to Thread
Results 1 to 2 of 2

I've got some problems in converting Hexadecimal values to ASCII

  1. #1
    vleong01@gmail.com
    Guest

    I've got some problems in converting Hexadecimal values to ASCII

    Hi there, i've got some problems converting hexadecimal value to ascii.
    This is how my coding looks like.

    Function ReturnHEX(TheString as String) As String
    Dim i As Integer, RtnStr As String
    RtnStr = ""
    For i=1 To Len(TheString)
    RtnStr=RtnStr &Right$("&H" &
    Str(CInt(Mid$(TheString,i,1))),2) & " "
    Next
    ReturnHEX=RtnStr
    End Function

    Hope someone can come out a solution for this. Thanks.

    Regards,
    vleong


  2. #2
    Bob Phillips
    Guest

    Re: I've got some problems in converting Hexadecimal values to ASCII

    What are you trying to do here, convert what to what? An example would be
    useful.

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    <vleong01@gmail.com> wrote in message
    news:1130320183.572678.200640@g47g2000cwa.googlegroups.com...
    > Hi there, i've got some problems converting hexadecimal value to ascii.
    > This is how my coding looks like.
    >
    > Function ReturnHEX(TheString as String) As String
    > Dim i As Integer, RtnStr As String
    > RtnStr = ""
    > For i=1 To Len(TheString)
    > RtnStr=RtnStr &Right$("&H" &
    > Str(CInt(Mid$(TheString,i,1))),2) & " "
    > Next
    > ReturnHEX=RtnStr
    > End Function
    >
    > Hope someone can come out a solution for this. Thanks.
    >
    > Regards,
    > vleong
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1