volvomann Active Member Licensed User Longtime User Jan 18, 2013 #1 Hallo When i resive an sms i read it the text in a label, is it posible to get text in to lines after ex 5 letters? An if how can i do that?
Hallo When i resive an sms i read it the text in a label, is it posible to get text in to lines after ex 5 letters? An if how can i do that?
mangojack Expert Licensed User Longtime User Jan 18, 2013 #2 There might be a better way but ... Code: Copy Dim MyText,strA,strB As String Dim strLen As Int MyText = "ABCDEFGHIJK" strLen = MyText.Length strA = MyText.SubString2(0,5) strB = MyText.SubString2(5,strLen) Msgbox(strA & " " & strB,"Two Seperate Strings ...") ps. If there is a consistent character at the 5th position you could then use regex to split the string .. neater Cheers mj Last edited: Jan 18, 2013 Upvote 0
There might be a better way but ... Code: Copy Dim MyText,strA,strB As String Dim strLen As Int MyText = "ABCDEFGHIJK" strLen = MyText.Length strA = MyText.SubString2(0,5) strB = MyText.SubString2(5,strLen) Msgbox(strA & " " & strB,"Two Seperate Strings ...") ps. If there is a consistent character at the 5th position you could then use regex to split the string .. neater Cheers mj