Results 1 to 4 of 4

convert raw hex string to ASCII

Threaded View

  1. #1
    Registered User
    Join Date
    06-04-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    3

    convert raw hex string to ASCII

    hello,
    I've been wrestling with this for a while now and need some help.

    I am making a system call to read a serial port as follows:
    status = CommRead(Port, Buffer, Size)

    Where Port is an integer, Buffer is a String and Size is a Long

    I get a string of 20 raw hex values from the device I am reading.
    When I put the Buffer String into a cell, only the numbers that are ASCII characters are displayed.
    I need to convert the raw hex value to an ASCII set then place the 20 values into 20 different rows.

    I've tried indexing into the string, but I always seem to get compile errors. Buffer.Chars(int)
    Side note, my version of VB won't let me declare a Char variable.

    Thanks for any help you can offer.
    Last edited by playitloud; 06-10-2013 at 11:43 AM.

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