T Turbo3 Active Member Licensed User Longtime User Dec 16, 2014 #1 Can we get ToHexString added to the Core Bit function like it is in B4A? Thanks. Last edited: Dec 17, 2014
Erel B4X founder Staff member Licensed User Longtime User Dec 17, 2014 #2 You can use ByteConverter.HexFromBytes. It is better than Bit.ToHexString (in Android as well).
J jo1234 Active Member Licensed User Longtime User Dec 17, 2014 #3 See https://www.b4x.com/android/forum/threads/tohexstring.48215/
Erel B4X founder Staff member Licensed User Longtime User Dec 17, 2014 #4 It was a mistake to add Bit.ToHexString to B4A. In almost all cases it will not return the result you are interested in. In this specific case it returns the correct result but it is also easily achievable with ByteConverter.HexFromBytes.
It was a mistake to add Bit.ToHexString to B4A. In almost all cases it will not return the result you are interested in. In this specific case it returns the correct result but it is also easily achievable with ByteConverter.HexFromBytes.
T Turbo3 Active Member Licensed User Longtime User Dec 17, 2014 #5 Actually, I use Bit.ToHexString all the time in B4A and have not seen any problems but I only convert byte data (0x00-0xFF). I see now that ByteConverter is built-in. No need for a library. Thanks. Last edited: Dec 17, 2014
Actually, I use Bit.ToHexString all the time in B4A and have not seen any problems but I only convert byte data (0x00-0xFF). I see now that ByteConverter is built-in. No need for a library. Thanks.