P PrayudiPramono Member Licensed User Feb 26, 2021 #1 dim A as String, B as String A="anywhere software" what if I want to put 3 letters from the left to variable B, so B = "any" and 8 letters from the right so B = "software" and 5 letters that start at the 4th letter, so B = "where"? Thank you
dim A as String, B as String A="anywhere software" what if I want to put 3 letters from the left to variable B, so B = "any" and 8 letters from the right so B = "software" and 5 letters that start at the 4th letter, so B = "where"? Thank you
Erel B4X founder Staff member Licensed User Longtime User Feb 26, 2021 #2 Exactly like in B4A or B4J. B4X: Dim b As String = A.SubString2(0, 3) b = A.SubString2(A.Length - 8, A.Length) b = A.SubString2(3, 3 + 5) '0 = 1st letter Upvote 0
Exactly like in B4A or B4J. B4X: Dim b As String = A.SubString2(0, 3) b = A.SubString2(A.Length - 8, A.Length) b = A.SubString2(3, 3 + 5) '0 = 1st letter