Hi,
I have a local variable MsgBody (text 260)
I like to insert some text into this variable to insert it on the body of a mail in two lines.
I've try this code
MsgBody := 'Course de : ' + Account + '\';
MsgBody := MsgBody + 'Remarque : ' + Remarques
But the result is (one line):
Course de : NBA\Remarque : non facturé
I've test '\\' and '/' and '//' but it's not the good combination.
Can you help me?
Thanks
Luc
Comments
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
RIS Plus, LLC
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
What DOES help though is sending a HTML e-mail and inserting BR tags into it.
This is not true. I used Luc's solution the with mail codeunit (400) in version 5.0 and the carriage return indeed works.
Let me know if you want to see what I did.
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
VAR
chr13: Char
chr10: Char
CarriageReturn: Text(2)
CODE
chr13 := 13;
chr10 := 10;
MsgBody := 'Course de : ' + Account + FORMAT(chr13) + FORMAT(chr10);
MsgBody := MsgBody + 'Remarque : ' + Remarques;
CarriageReturn := FORMAT(chr13) + FORMAT(chr10);
IF STRPOS(MsgBody,CarriageReturn) <> 0 THEN
//do something, like maybe, replace CarriageReturn with '\'
MCP - Dynamics NAV