I'll try to explain the problem in more details. Though I'm not sure if I'll be able to.
One of the abilities of this enhanced msgbox(EMB) is that we can use backslash and n to insert a new line. A new method instead of vbCrLf.
Well. It's a nightmare if your Windows local is not set to English. For example for us who use Japanese/Korean/Chinese and a lot more.
Because these languages use different signs for backslash.
This is backslash when Windows Local is set to English:
\
This is backslash when Windows Local is set to Japanese:
This is backslash when Windows Local is set to Korean:
Apparently, Because I live in Japan, Windows Local is set to Japanese. With this situation I want to send a message with two lines.Something like:
This is Line 1
This is Line 2
According to the documentation:
Then my code would be:
Dialog.Box "This is line 1 \n This is Line 2"
But as you see when I type backslash it is a Yen sign:
And when I run the code, apparently I receive this:
And as you see, the program doesn't catch yen sign as a backslash. I have only one line with a nonsense ¥n in the middle.
Click this link
https://en.wikipedia.org/wiki/Backslash
and scroll down to
Confusion in usage section. You'll see even Swedish or Danish or other countries have different backslashes.
I've never been to those countries and I'm not sure if they have the same problem as me, but personally I think replacing vbCrLf to a sign which may cause problem is not a wise decision.
Imagine you write a program and sell it to someone in another country. You can be sure what they see is different with what you see. And as a programmer point of view you know the damage.
I know some programming languages such as PHP use \n for new line, but those languages' interpreter engine is designed to recognize different shapes of a backslash.
I hope I've been clear enough.
Important : Be sure to read the
Confusion in Use section in above link please.
Tera