vali khandangoll Active Member Nov 20, 2022 #1 hi all of you. how can merge two string to another ? please simple code. thanks.
Erel B4X founder Staff member Licensed User Longtime User Nov 21, 2022 #2 JoinStrings: https://www.b4x.com/android/forum/threads/strings-and-bytes.66729/#content Upvote 0
vali khandangoll Active Member Nov 21, 2022 #3 Erel said: JoinStrings: https://www.b4x.com/android/forum/threads/strings-and-bytes.66729/#content Click to expand... thanks i saw this example beafore. but i can not use that my question is a very simple question. str1="123" str2="456" str3=str1 + str2 thanks again Upvote 0
Erel said: JoinStrings: https://www.b4x.com/android/forum/threads/strings-and-bytes.66729/#content Click to expand... thanks i saw this example beafore. but i can not use that my question is a very simple question. str1="123" str2="456" str3=str1 + str2 thanks again
bdunkleysmith Active Member Licensed User Longtime User Nov 21, 2022 #4 Why can't you use JoinStrings? Based on my experience in using JoinStrings in B4R this would achieve what you require: B4X: Dim str1 as string = "123" Dim str2 as string = "456" Dim str3 as string str3 = JoinStrings (Array As String(str1, str2)) Last edited: Nov 22, 2022 Upvote 0
Why can't you use JoinStrings? Based on my experience in using JoinStrings in B4R this would achieve what you require: B4X: Dim str1 as string = "123" Dim str2 as string = "456" Dim str3 as string str3 = JoinStrings (Array As String(str1, str2))
AnandGupta Expert Licensed User Longtime User Nov 22, 2022 #5 vali khandangoll said: thanks i saw this example beafore. but i can not use that my question is a very simple question. str1="123" str2="456" str3=str1 + str2 thanks again Click to expand... str3=str1 & str2 in B4X Upvote 0
vali khandangoll said: thanks i saw this example beafore. but i can not use that my question is a very simple question. str1="123" str2="456" str3=str1 + str2 thanks again Click to expand... str3=str1 & str2 in B4X
bdunkleysmith Active Member Licensed User Longtime User Nov 22, 2022 #6 AnandGupta said: str3=str1 & str2 in B4X Click to expand... Not so in B4R I believe because as stated in the reference provided by @Erel https://www.b4x.com/android/forum/threads/strings-and-bytes.66729/#content, "B4R strings are different than in other B4X tools." and so the use of JoinStrings is necessary. Upvote 0
AnandGupta said: str3=str1 & str2 in B4X Click to expand... Not so in B4R I believe because as stated in the reference provided by @Erel https://www.b4x.com/android/forum/threads/strings-and-bytes.66729/#content, "B4R strings are different than in other B4X tools." and so the use of JoinStrings is necessary.
AnandGupta Expert Licensed User Longtime User Nov 22, 2022 #7 bdunkleysmith said: Not so in B4R I believe because as stated in the reference provided by @Erel https://www.b4x.com/android/forum/threads/strings-and-bytes.66729/#content, "B4R strings are different than in other B4X tools." and so the use of JoinStrings is necessary. Click to expand... Oh..didn't knew B4R syntax is different here. Upvote 0
bdunkleysmith said: Not so in B4R I believe because as stated in the reference provided by @Erel https://www.b4x.com/android/forum/threads/strings-and-bytes.66729/#content, "B4R strings are different than in other B4X tools." and so the use of JoinStrings is necessary. Click to expand... Oh..didn't knew B4R syntax is different here.
tigrot Well-Known Member Licensed User Longtime User Dec 23, 2022 #8 AnandGupta said: Oh..didn't knew B4R syntax is different here. Click to expand... String support is very Limited in B4R because of Limited RAM present. Upvote 0
AnandGupta said: Oh..didn't knew B4R syntax is different here. Click to expand... String support is very Limited in B4R because of Limited RAM present.