peacemaker Expert Licensed User Longtime User Oct 29, 2024 #1 Hi, All I asked in vain here: https://www.b4x.com/android/forum/threads/why-strange-strings.163520/ and today found that if the web-server name is static string - no trouble ! But if to use the variable string that is got by such sub - it's messed interface: B4X: UI.begin(APname, "", "", 80) Public Sub APname As String Return JoinStrings(Array As String(title, "_", Main.bc.HexFromBytes(MacArray))) End Sub like: Like got from the heap memory, where already placed previous strings (JSON of HTTP requests). But why ?
Hi, All I asked in vain here: https://www.b4x.com/android/forum/threads/why-strange-strings.163520/ and today found that if the web-server name is static string - no trouble ! But if to use the variable string that is got by such sub - it's messed interface: B4X: UI.begin(APname, "", "", 80) Public Sub APname As String Return JoinStrings(Array As String(title, "_", Main.bc.HexFromBytes(MacArray))) End Sub like: Like got from the heap memory, where already placed previous strings (JSON of HTTP requests). But why ?
T thetrueman Active Member Oct 29, 2024 #2 I think the following link has your answer. Strings and Bytes Strings and Bytes B4R strings are different than in other B4X tools. The reasons for these differences are: 1. Very limited memory. 2. Lack of Unicode encoders. A String object in B4R is the same as C char* string. It is an array of bytes with an additional zero byte at the end. The requirement of the last zero... www.b4x.com Upvote 0
I think the following link has your answer. Strings and Bytes Strings and Bytes B4R strings are different than in other B4X tools. The reasons for these differences are: 1. Very limited memory. 2. Lack of Unicode encoders. A String object in B4R is the same as C char* string. It is an array of bytes with an additional zero byte at the end. The requirement of the last zero... www.b4x.com