To lines in a label.

volvomann

Active Member
Licensed User
Longtime User
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?
 
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:
Upvote 0
Back
Top