Jump to content
Sign in to follow this  
LovelyJane

How do I add a new line or line break in MsgBox "message"

Recommended Posts

LovelyJane

Hello, sorry if this has been asked before but I was wondering how do you create a new line or line break in MsgBox "message", example:

Func ShowMessage()
    MsgBox(64, "title", "line 1 line 2 line 3")
EndFunc
Call ("ShowMessage")

So it appears as,

Title of message box

Message first line "line 1"

Message second line "line 2"

Message third line "line 3"

and not appears as,

Title of message box

Message first line "line 1 line 2 line 3"

Message second line blank

Message third line blank

Share this post


Link to post
Share on other sites
gottygolly

Example()

Func Example()
   MsgBox(64,"Title","Line 1"&@crlf&"Line 2"&@crlf&"Line 3")
EndFunc

That?

Edited by gottygolly

Share this post


Link to post
Share on other sites
water

"line 1" & @CRLF & "line 2" & @CRLF & "line 3"


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
LovelyJane

Thank you! I did not know &@CRLF& represents line break or new line.

Edited by LovelyJane

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×