How to display two lines in MSGBOX

I’ve been trying to get two lines to appear in a MSGBOX but don’t yet know how. The appear as one line. Is there a way to get two lines?i.e.:

   Welcome to you Notes

    Have a great day!

instead of one line:

Welcome to you Notes Have a great day!

Thanks for any suggestions!!!

Subject: how to display two lines in MSGBOX

strTmp = “Welcome to Notes” & Chr(13) & "Have a nice day"msgbox strTmp

Subject: RE: how to display two lines in MSGBOX

Thanks!!! That worked great.Just curious to know if there is a way to have the two lines centered? They are left justified (but on two lines thanks to you!!!)

Thanks again!

Subject: RE: how to display two lines in MSGBOX

I don’t think so. Msgbox is meant to mimic the operating system’s alert box, which is not formattable. If it was necessary, you’d could fake it, but it would (to my mind) be more trouble than it was worth:

Create a “messagebox” form - gray background with a table and a single field in the center, text centered. When you want to popup your message, you’d pass the message string into a field, then call workspace.dialogbox which would open the form and place the message string into the centered text field.

Subject: RE: how to display two lines in MSGBOX

Great idea, Esther! But I agree with you - not really worth the effort. Thanks for the reply and letting me know about Msgbox not being formatable.

Thanks!!!

(as a side bar, I did pad the front of the second line with spaces to give it the appearance of being centered)