Page 1 of 1

Hex To String

Posted: Sat Jan 13, 2024 9:45 pm
by Alan_37
Hello ,

How do I convert an Array of hex Byte's to String Example :

HexArray = AA 1C 2D 5E 2F

I want the string to look like the following

String = AA,1C,2D,5E,2F


Anyone can help Please

Re: Hex To String

Posted: Sat Jan 13, 2024 9:57 pm
by kersing
Create an empty sting of sufficient length, loop over the array and add the output of NumberToHex$ to the end with whatever needs to separate the hex numbers if there is another element in the array.

Re: Hex To String

Posted: Sat Jan 13, 2024 10:48 pm
by Alan_37
Hi Kersing

Yes it works Thanks very much for your quick reply