Hex numbers

Kevin

Well-Known Member
Licensed User
Longtime User
Can I just type HEX numbers directly? I am trying to modify some code from Python and I am converting this:

B4X:
messagepart1 = chr(0x64) + chr(0x00) + chr(len(ipencoded))

In B4A, I just did this and it appears it is fine....

B4X:
MessagePart1 = Chr(0x64) & Chr(0) & Chr(IPEncoded.Length)

Is the chr(0x64) okay? I wasn't expecting it to be that easy. :D
 
Top