This post is for people who have recently joined and are still Learning NAV.
In Programming Languages like C & C++ , the new line Character used is "\n".
However, in Dynamics NAV, the new line Character is "\".
Let's see an example:
Text0001 := 'This is the first line of message. \ This is the second line of message.';
MESSAGE(Text0001);
When i run these lines of code, the resultant output will be
---------------------------
Microsoft Dynamics NAV
---------------------------
This is the first line of message.
This is the second line of message.
---------------------------
OK
---------------------------
This can also be done like this:
MESSAGE('This is the first line of message. \ This is the second line of message.');
The resultant output will still be
---------------------------
Microsoft Dynamics NAV
---------------------------
This is the first line of message.
This is the second line of message.
---------------------------
OK
---------------------------
Hope you find this useful.
In Programming Languages like C & C++ , the new line Character used is "\n".
However, in Dynamics NAV, the new line Character is "\".
Let's see an example:
Text0001 := 'This is the first line of message. \ This is the second line of message.';
MESSAGE(Text0001);
When i run these lines of code, the resultant output will be
---------------------------
Microsoft Dynamics NAV
---------------------------
This is the first line of message.
This is the second line of message.
---------------------------
OK
---------------------------
This can also be done like this:
MESSAGE('This is the first line of message. \ This is the second line of message.');
The resultant output will still be
---------------------------
Microsoft Dynamics NAV
---------------------------
This is the first line of message.
This is the second line of message.
---------------------------
OK
---------------------------
Hope you find this useful.
No comments:
Post a Comment