Insert newline char in MsgBox?

rfresh

Well-Known Member
Licensed User
Longtime User
Can I insert a newline char in a msgbox sting? I tried \n but that didn't work.

Thanks...
 

rfresh

Well-Known Member
Licensed User
Longtime User
My code below doesn't work. I tried & and that didn't seem to work either. I'm trying for this kind of format in a msgbox:

This is some text.
This is more of the same text.
And this is even more text.

B4X:
Msgbox("text" + CRLF + CRLF + "2222","Title")
 
Upvote 0

Gianni M

Well-Known Member
Licensed User
Longtime User
message = "first line" & CRLF & CRLF & "second line"
msgbox(message,"")
:)
 
Upvote 0

Mahares

Expert
Licensed User
Longtime User
The below code will split the message in 3 lines for you.

B4X:
ToastMessageShow("Hi Molder26" & CRLF & "How are things in your country?" _
& CRLF & "Have a good day.",True)
 
Upvote 0
Top