Options

New Line

sadynamicssadynamics Member Posts: 42
Hi Experts,
Is it possible to create line break or new line in Navision. Basically i am trying to send mails from navision it is giving clubbed sentence. Is there any possibility of creating line breaks in C/AL.

Thanks....
Luv,
Dynamics Lover

Comments

  • Options
    krikikriki Member, Moderator Posts: 9,096
    [Topic moved from Navision Exams & Certification forum to Navision forum]
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • Options
    jonsan21jonsan21 Member Posts: 118
    IF you do this:
    MESSAGE('This is the first line \This is the second line');
    

    It will show you:

    This is the first line
    This is the second line

    Does it help?

    Rgds,

    Jon.
    Rgds,

    Jon.
  • Options
    sadynamicssadynamics Member Posts: 42
    Hi Jonsan,

    I will tell you the scenario. i have declared one variable and i am hardcoding below sentence to that variable like below


    Text:= 'Please find attached document syzx..............etc'

    i am passing this value to code unit from their i am sending mails. My problem is i need to have line break up in those sentence.

    like below

    Text:=Please find attached document syzx
    other words here.....

    i can't give any line breaks in above issue. so i am using space instead of line break. But when it is displaying in outlook it's coming unordered way...

    i believe you can understand the issue....
    Luv,
    Dynamics Lover
  • Options
    anniqaanniqa Member Posts: 16
    cr:= 10;
    lf := 13;
    MESSAGE('sometext'+ FORMAT(cr)+ FORMAT(lf) +'somemore');
    where cr & lf are chars
  • Options
    krikikriki Member, Moderator Posts: 9,096
    Or more beautiful:
    txtCRLF := 'xx';
    txtCRLF[1] := 13;
    txtCRLF[2] := 10;
    MESSAGE('sometext'+ txtCRLF +'somemore');
    
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • Options
    sadynamicssadynamics Member Posts: 42
    Hi experts,

    i don't want message to be displayed. i am passing the hardcoded value to one variable in code unit..

    below are the output in my mail box..

    Hi, please see attached... some text
    regards,

    please note that i am storing this sentence in one variable...

    the mail should be like this,
    Hi,
    Please see attached..Some text
    regards,

    Hope you understand my issue...
    Luv,
    Dynamics Lover
  • Options
    krikikriki Member, Moderator Posts: 9,096
    Something like this:
    txtCRLF := 'xx';
    txtCRLF[1] := 13;
    txtCRLF[2] := 10;
    txtTheVariable := 'sometext'+ txtCRLF +'somemore';
    

    And that variable, you send into the body of the email.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.