Hex To String

For general Flowcode discussion that does not belong in the other sections.
Post Reply
Alan_37
Posts: 125
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 37 times
Been thanked: 17 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: 157
Joined: Wed Dec 02, 2020 7:28 pm
Has thanked: 64 times
Been thanked: 58 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: 125
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 37 times
Been thanked: 17 times

Re: Hex To String

Post by Alan_37 »

Hi Kersing

Yes it works Thanks very much for your quick reply

Post Reply