¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: Simpl+ hex manipulation


 

You could convert your example string to an integer with



i=(byte(s,1)*256)+byte(s,2);



If 's' = the string "\x03\xE7", then integer 'i' would = 03E7h or 999d,
depending on how one wishes to look at it. No need for further conversion,
assuming I'm understanding your intent.



From: Crestron@... [mailto:Crestron@...] On Behalf
Of prunier514
Sent: Tuesday, June 04, 2013 4:52 PM
To: Crestron@...
Subject: [Crestron] Simpl+ hex manipulation





Hi guys,

First,I have a string. For example: string stringtest = "\x03\xE7";
Finally: I want take the both hex value of stringtest to put together (so, I
want 03E7)and convert this value in an integer to have 999 at the end.
Any suggestions?
Thx for time

Join [email protected] to automatically receive all group messages.