Hex To String

For general Flowcode discussion that does not belong in the other sections.
Post Reply
Alan_37
Posts: 173
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 52 times
Been thanked: 25 times

Hex To String

Post 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

kersing
Valued Contributor
Posts: 180
Joined: Wed Dec 02, 2020 7:28 pm
Has thanked: 73 times
Been thanked: 63 times

Re: Hex To String

Post 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.

Alan_37
Posts: 173
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 52 times
Been thanked: 25 times

Re: Hex To String

Post by Alan_37 »

Hi Kersing

Yes it works Thanks very much for your quick reply

Post Reply