Kevin Well-Known Member Licensed User Longtime User Nov 25, 2012 #1 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.
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.
Erel B4X founder Staff member Licensed User Longtime User Nov 25, 2012 #2 Can I just type HEX numbers directly? Click to expand... Yes. Upvote 0