Results 1 to 14 of 14

Thread: [RESOLVED] How to convert a HEX array to DEC ???

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member pourkascheff's Avatar
    Join Date
    Apr 2020
    Location
    LocalHost
    Posts
    384

    Resolved [RESOLVED] How to convert a HEX array to DEC ???

    Hi all. I have a collection of raw hexadecimal bytes (2 digits each with a space between i.e. "5E A2 1C") which I want to convert and simultaneously, I want to separate each part with ',' but I don't know how.

    I came here with the idea below for second part:
    Code:
    Dim result as UInt16()
    TextBox1.Text = String.Empty
    For Each item As UInt16 In result
         TextBox1.Text = String.Format("{0}, ", item)
    Next
    But I'm really hopeful you guys will come with a better short and organize idea to do both at same time.
    Last edited by pourkascheff; Apr 25th, 2021 at 01:51 AM. Reason: Correction

Tags for this Thread

Posting Permissions

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



Click Here to Expand Forum to Full Width